Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
nameValueFirst_API Format - Incoming WA 1.1.pdf
View file
nameValueFirst_Whatsapp_Doc_Version_1.0.3 (2).pdf

  • Input to Chabot

Example:- Refer following class in chatbot “org.egov.chat.xternal.responseformatter.ValueFirst.ValueFirstResponseFormatter”

...