...
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 |
| Indicates the type of response: in this case must be “document” | ||||||
fileName |
| 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.
Example
Response configured with a text message, a document, a text message and another document in this exact order.
...