Advertising sustains the DA. Ads are hidden for members. Join today

How it works

Last updated on
7 September 2019

Before starting with our intent integration we have to make sure our remote service is connected to our website and they correctly talk together.

It's important you understand Chatbot API is just a set of tools helping the process, but you'll need other modules in order to cover the service request and response handling.

For instance you can use the Alexa module and the Chatbot API - Alexa driver (separated from Chatbot API since version 2) to integrate your website with an Alexa Skill.

Below the steps of a remote request traversing your website and becoming an output response:

  1. The service controller (for instance the Alexa) receives a "HelloWorld" Intent request and passes it to the responsible code (i.e. the Alexa module dispatches an event).
  2. Through custom code or a contrib driver (for instance Chatbot API - Alexa) Chatbot API hooks in this process.
  3. The plugin manager searches for a Chatbot\Intent plugin with "HelloWorld" as plugin ID.
  4. If a plugin exists then its process() method is called in order to fulfil the logic and set an intent response message (setIntentRespose($message)).
  5. The service controller completes the request process and returns the response to the remote service.

As you can see from the step above your task is to provide a Chatbot\Intent plugin with your intent name as plugin ID and your logic in the process() method. Nothing else.

Currently you can either create a Custom intent plugin or a Views/Listing one through the Views integration.

Help improve this page

Page status: No known problems

You can: