This repository provides sample integrations for the tawk.to AI Assist API, demonstrating how to set up and implement these integrations using Google Apps Script. Whether you're looking to streamline customer support or enhance chatbot functionality, these examples will help you get started quickly and easily.
There are different methods to access Google App Script from your document
- In Google Sheets, click
Extensions -> Apps Script
- In Google Form, click the triple dot menu icon and click
Script editor
- Copy the sample code from
Code.gs
. - Modify any parameters to fit your requirements.
- Deploy the script by selecting
Deploy -> New Deployment
. - Under
Execute As
, selectMe
to ensure the script has the correct permissions to modify the file. - Under
Who has access
, selectAnyone
to allow AI Assist to call the Web App. - Click Deploy.
- Copy and save the Web App URL. Note that a new URL is generated with each deployment.
This file must be publicly accessible in its raw format. Here's how to host it on GitHub Gist:
- Create a new gist.
- Enter a file name, making sure to use the .yml extension.
- Copy the contents of
spec.yml
into the gist. - Update the value of servers.urls with the URL copied from the Google App Script
(Web App URL). Remove
/exec
from the end of the URL, it should already be included inpaths
. - You can edit and test your spec using an online spec editor like Swagger.
- Click
Create
. - Click
Raw
. - Copy the raw file URL.
- Add a new API tool.
- Paste the spec file URL into the
Schema File URL
field. - Click
Save
.