Views: 2359 (Data available since 06.02.2017)
The most important thing to remember about chatbots is their logic which is typically a reaction to an action performed by a user or system.
The chatbot API includes the six events that cover the required range of responses:
All we have to do to implement the required chatbot logic is to add event handlers:
To fulfill the requirements, the chatbot REST API contains simple methods a developer can use. Only the two of those are needed to get started:
Another treat for a lazy developer: we don't have to implement OAuth 2.0 in our application because all the authentication parameters are passed to event handlers in the $_REQUEST array.