# 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](https://docs.is-messenger.com/ismessenger/contact-and-messages/untitled) 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](https://docs.is-messenger.com/ismessenger/workspace-setting/integrations/dialogflow/dialogflow-custom-payloads) 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.
