Skip to content

An example Twilio IP Messaging node.js chatbot built with Botkit and integrated with Dialog Analytics.

License

Notifications You must be signed in to change notification settings

dialoganalytics/botkit-twilio-ipm-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twilio IP Messaging Botkit Chatbot

An example Twilio IP Messaging node.js chatbot and integrated with Dialog Analytics. Built with howdyai/botkit.

Getting started

Clone this repository and run npm install

Create an account on https://app.dialoganalytics.com, grab your Dialog API token and bot ID.

Follow these instructions to get started with a Twilio IP Messaging bot.

Set environment variables in .env:

TWILIO_IPM_SERVICE_SID=...
TWILIO_ACCOUNT_SID=...
TWILIO_API_KEY=...
TWILIO_API_SECRET=...
DIALOG_API_TOKEN=...
DIALOG_BOT_ID=...

Local development: When developping locally, use a service like https://ngrok.com to expose a server running on your machine.

Local development: When developping locally, use a service like https://ngrok.com to expose a server running on your machine. You'll need to update your Twilio app's webhook and set it to something like https://075301e2.ngrok.io/twilio/receive.

$ ngrok http 3000

Start the bot:

$ node bot.js https://075301e2.ngrok.io

If you don't already have an application to interact with Twilio's API, clone this demo client application: [https://github.com/twilio/twilio-chat-demo-js].

Exchange a few messages with the bot. Messages will be sent to Dialog's API.

Go further

Read more on how to make the most out of the possibilities offered by Dialog here: https://dialoganalytics.com

About

An example Twilio IP Messaging node.js chatbot built with Botkit and integrated with Dialog Analytics.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published