> For the complete documentation index, see [llms.txt](https://docs.bird.com/toky-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bird.com/toky-en/integrationstokyapp/how-to-enable-replies-with-sms-from-zendesk.md).

# How to enable replies with SMS from Zendesk

If you want to send SMS as a reply to a ticket created from a text message sent by your customer, you must use the following configuration in your Zendesk account.

#### 1. Create the Toky extension in Zendesk <a href="#id-1-create-the-toky-extension-in-zendesk" id="id-1-create-the-toky-extension-in-zendesk"></a>

* Create an extension in your Zendesk account: click on **Settings,** next click on **Extensions,** and lastly, click on **Add target.** (You can also click this link to go to your [**Triggers section**](https://toky.zendesk.com/agent/admin/triggers)**,** and click on **Add target.**)

<figure><img src="/files/CMfxePivIxndwFtoRCUy" alt=""><figcaption></figcaption></figure>

* Click on **HTTP target.**

<figure><img src="/files/675IlI3YQSeQlPeetK5S" alt=""><figcaption></figcaption></figure>

* Add **Toky web** as the **Title**
* Enter [**https://integrations.toky.co/webhooks/zendesk**](https://integrations.toky.co/webhooks/zendesk) In the **URL** field
* Select **POST** as the **Method**
* Select **JSON** as the **Content Type**
* Select **Create target** in the dropdown next to the **Submit** button

<figure><img src="/files/gWMLNgxL1kiutQY6d0oR" alt=""><figcaption></figcaption></figure>

* Click on **Submit,** and the extension will be created.

<figure><img src="/files/VKAEnuEhTz8UZk2p4Z77" alt=""><figcaption></figcaption></figure>

#### 2. Create the trigger in Zendesk <a href="#id-2-create-the-trigger-in-zendesk" id="id-2-create-the-trigger-in-zendesk"></a>

* Create a trigger in your Zendesk account: you can click on **Settings,** next on **Trigger** and lastly, click on **Add Trigger.** (You can also click on this link to go to your [**Triggers section**](https://toky.zendesk.com/agent/admin/triggers) and click on **Add Trigger**.)

<figure><img src="/files/epBfHjFIEvJJhSbB8NqH" alt=""><figcaption></figcaption></figure>

* Put **Reply SMS through Toky** as the **Trigger name.**

<figure><img src="/files/gOjFKUCeyu21CfSoa4To" alt=""><figcaption></figcaption></figure>

* In the **Conditions** section, click on **Add condition** and configure the condition: **Comment** - **is** - **Public**

<figure><img src="/files/CeMLpWt0nKKXnK8RYlyi" alt=""><figcaption></figcaption></figure>

* In the **Action** section, click on **Add action** and select: **Notify target - Toky web.**
* Add the following code snippet into the **JSON Body** field.

```
{
"ticket_id": "{{ticket.id}}",
"ticket_external_id": "{{ticket.external_id}}",
"ticket_latest_comment": "{{ticket.latest_comment}}",
"agent": "{{current_user.email}}",
"agent_id": "{{current_user.id}}",
"ticket_comment_visibility": "{{ticket.latest_comment.is_public}}",
"uuid": "{{ticket.latest_comment.id}}"
}
```

<figure><img src="/files/7ToICR2jI1gQDaR93YhQ" alt=""><figcaption></figcaption></figure>

* Click on the **Create** button. The Trigger will be created.
