Accepting payments and sending invoices
Sending order updates
Sample Messenger store assistant
Intents and Entities
Building Dialogflow agent and connecting to Activechat
Sending user input to NLP engine
Triggering bot skills by intents and events
Working with entities
NLP best practices
Bots that cannot connect to external APIs and integrate into business frameworks, probably will stay nothing but a toy. To make your bot really useful for your customers we’ve developed integration system through JSON module.
You can also use this block to call external API endpoints (Zapier is a perfect example) and fetch data from these endpoints to your bot.
Paste external script address to block settings and choose calling method (GET or POST). Add parameters that you’d like to send with the call (you can use both constants and variables).
As a result this block will save received key-value pairs to bot variables and move on to the block that is connected to SUCCESS tab. On any error block connected to ERROR button will be triggered.
In the example above bot is collecting user email address and phone number and sending these to Zapier webhook catcher, so they could be added to CRM or Google Sheets.
Let’s suppose that external script returns JSON of this structure (here’s an example from Zapier Webhooks integration):
After this call you will have new variables in your bot: $status, $attempt, $id and $request_id. Their values can be used in any other block since then (TEXT, DATA, SWITCH etc).
Currently we support plain JSON output with no nested objects. Objects and arrays will be supported soon.
And finally, the most useful (and simple) use case is Zapier integration. Use Webhooks by Zapier to trigger Zaps that will be able to achieve multiple tasks: