# Dialogflow: Response Templates

When creating an intent in the Dialogflow console, you'll be presented with several response templates. `Default` appears automatically for every new intent, but other templates are available for several messages apps.

Please use the guidelines below when working with Response Templates.

{% hint style="info" %}
You may include [Dynamic Variables](/ismessenger/contact-and-messages/untitled.md) in your response templates.\
`{{$dynamic.variable}}`\
(E.g., Hi {{$contact.name}}, what's your phone number?)
{% endhint %}

### Using Response Templates <a href="#using_response_templates" id="using_response_templates"></a>

Dialogflow has created Response Templates for Facebook Messenger, Telegram, LINE, Viber and Slack.

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/zmsp9smd4a/1664244998609/dialogflow-response-templates.gif" alt="gif showing how to set up dialogflow response templates for different channels"><figcaption></figcaption></figure>

When sending messages to a Channel supported by Dialogflow, use the Response Template for that app. When a Channel does not have a Response Template in Dialogflow, please refer to the table below.

{% hint style="info" %}
These guidelines are only for Response Templates; be aware that [custom payloads](/ismessenger/workspace-setting/integrations/dialogflow/dialogflow-custom-payloads.md) have their own guidelines.
{% endhint %}

In short, our platform will forward messages to each respective Channel based on priority below. If an answer is not available in the 1st priority Response Template, the 2nd Priority Response Template will send.

| **Channel**                                       | **1st Priority** | **2nd Priority** |
| ------------------------------------------------- | ---------------- | ---------------- |
| Facebook Messenger                                | Facebook         | Default          |
| Instagram                                         | Facebook         | Default          |
| LINE                                              | LINE             | Default          |
| SMS MessageBird                                   | Default          | -                |
| SMS Twilio                                        | Default          | -                |
| SMS Vonage                                        | Default          | -                |
| Telegram                                          | Telegram         | Default          |
| Twitter                                           | Default          | -                |
| Viber                                             | Viber            | Default          |
| Website Chat                                      | Facebook         | Default          |
| WeChat                                            | Facebook         | Default          |
| WhatsApp Business API (IS-Messenger WhatsApp BSP) | Facebook         | Default          |
| WhatsApp Cloud API                                | Default          | Default          |
| WhatsApp 360dialog                                | Facebook         | Default          |
| WhatsApp MessageBird                              | Default          | -                |
| WhatsApp Twilio                                   | Default          | -                |
| WhatsApp Vonage                                   | Default          | -                |

As you can see from the priority table above, some channels support Facebook Response Templates because IS-Messenger transforms the Facebook Response Templates and sends them to the Contact in a suitable messaging format.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.is-messenger.com/ismessenger/workspace-setting/integrations/dialogflow/dialogflow-response-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
