...
Whatsapp provider is a third party service which works in the middle of a user's whatsapp client and chatbot server. All messages coming/going to/from user pass through whatsapp provider. Chatbot calls whatsapp provider to send messages to user. When a user responds with any whatsapp message the whatsapp provider calls Chatbot service’s configured endpoint with details ex:- user sent message,sender’s number etc. If any new whatsapp provider is to be used with chatbot, code must be written to convert provider’s incoming messages to the format that chatbot understands and also final output from chatbot should be converted to whatsapp provider’s api request format. We discuss these in detail below:- next.
Currently as whatsapp provider we are using ValueFirst. The documentation about their apis can be found from below files
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
Input to Chabot
Example:- Refer following class in chatbot “org.egov.chat.xternal.responseformatter.ValueFirst.ValueFirstResponseFormatter”
...