Versions Compared

Key

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

Bot integration with Dialogflow supports the following types of messages:

  • TEXT

  • IMAGE

  • DOCUMENT

  • MENU

  • QUICK_REPLY

Text message

To define a text response, simply select "Text Response" from the possible response options and type one or more messages.

...

It is also necessary to configure some parameters for correct image processing. Being able to return multiple messages, even of different types, for the same intent, the parameters must end with a number corresponding to the position of the response in the sequence of configured responses.

Property

Required

Description

messageType

Status
colourRed
titleyes

Indicates the type of response: in this case must be “image”

fileName

Status
colourRed
titleyes

File name including extension

caption

Status
titleno

Caption of the image

Example

Response configured with an image, a text message and another image in this exact order.

...

To return a document as a response, we use Dialogflow “Image” response (eg. from Facebook or Telegram channel), with the url that returns the document and configured with the following parameters:

Property

Required

Description

messageType

Status
colourRed
titleYES

Indicates the type of response: in this case must be “document”

fileName

Status
colourRed
titleYES

File name including extension

Being able to return multiple messages, even of different types, for the same intent, the parameters must end with a number corresponding to the position of the response in the sequence of configured responses.

...

Finally, if the configured option is a url, an additional parameter is required (that must end with a number corresponding to the position of the option in the sequence of configured options of the menu) called target, to specify where to open the link.

Property

Required

Description

target

Status
colourRed
titleYES

The target attribute specifies where to open the link.

Possible values:

  • _blank

  • _self

  • _parent

  • _top

Example

Menu with 3 options: a link, a query for the bot and another link, in this order.

...

Quick reply (Whatsapp interactive button)