Chatwith is a chatbot builder that lets you train bots on your files and websites to respond to customer queries 24/7.
Connecting this app to Albato enables your website's chatbot to answer questions about your business or online store and submit user bug reports automatically in a Slack channel.
Read on to learn how to implement this use case!
Create automation scenario
Sign in to your Albato account and click the Create new automation button.
Select Webhook in the first automation step, choose the Incoming webhook event, and create a Webhook access or connect your Webhook account to Albato. Then, click the Add a trigger button.
Copy the provided Webhook URL.
Sign in to your Chatwith account, click on the Actions button in the left sidebar. In the window that appears, click Install on the webhooks card.
A popup will open. Here, we will enter the Webhook URL and define the values that our chatbot should collect and send to the webhook.
For our chatbot, we want to get the user's first_name and email, as well as the answers related to the issue reported, that is answer1 (issue description) and answer2 (relevant links). Let’s define the payload as such:
Click Send test payload and you’ll see the payload show up in Albato, confirming the establishment of a connection between the services.
To ensure the chatbot uses this new Action correctly, let's include instructions before returning to Albato and completing the scenario.
Use this action to register users' bug reports and suggestions for product updates. Always require the user's first name and email. Ask the first question to find out more details about the issue. Then ask the user if there is any relevant link related to this issue report.
After establishing and testing the connection between Chatwith and Albato, we can now proceed with the next steps in Albato's automation builder.
Select Slack as the next step in the automation with our webhook, choose Send a message to a channel as the action and, when prompted, authorize Albato to connect with Slack and access the necessary resources.
Then, map the value received from Chatwith through the Trigger to the Action. At the end, save, test, and start the Scenario.
Updating the System Prompt
To ensure that our chatbot is aware of its new role, we need to update the System Prompt:
- In Chatwith, select Settings in the navigation sidebar.
- Locate the System Prompt field.
- Update the field with the following instructions:
Your task is to collect users' bug reports and suggestions for product updates and send them to Slack. Ask the user for his name and email. Then ask for a description of the issue and links that may be relevant.
Make sure to save the changes once you have finished updating the System Prompt.
Testing
We are ready to see how our upgraded chatbot performs! Head on to the Preview section in your Chatwith account and try asking the chatbot for product issue report:
Congratulations! Your chatbot has a new superpower now!