Skip to content

xatkit-bot-platform/xatkit-whatsapp-via-twilio-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xatkit-twilio-platform

Receive and send messages from WhatsApp using the Twilio API

License Badge

Actions

Action Parameters Return Return Type Description
Reply - message (String): the message to post as a reply
The posted message String Posts the provided message as a reply to a received message.
ReplyMedia - message (String): the message to post as a reply
- media (String): the URL of the media you want to send
The posted message String Posts the provided message as a reply to a received message.

Options

The Twilio platform supports the following configuration options

Key Values Description Constraint
xatkit.twilio.username String The Account SID of your Twilio Account Mandatory
xatkit.twilio.auth.token String The Twilio token used by Xatkit to interact with the Twilio API. Mandatory

Using the Twilio platform

Check the BotTest sample bot included in the repo for an example of a bot using this platform. Make sure also to include this dependency to your pom

        <dependency>
            <groupId>com.xatkit</groupId>
            <artifactId>twilio-platform</artifactId>
            <version>3.0.1-SNAPSHOT</version>
        </dependency>

You also need to configure your Twilio Sandbox for WhatsApp in the Twilio console by adding the enpoint URL (you can use ngrok for this) make sure to add '/twilio' to the end of the URL, example: "http://x-serverurl-x/twilio"

Twilio Sandbox for WhatsApp

You can get more information about this configuration at https://www.twilio.com/docs/whatsapp/sandbox

About

Receive and send messages from WhatsApp using the Twilio API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages