# 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="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-a0d74c4b4dcdf789e54136c59640500109d3716a%2Fzd_1.png?alt=media" alt=""><figcaption></figcaption></figure>

* Click on **HTTP target.**

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-d93b9253572a2e33c5571477450f46cf2b1eb0e3%2Fzd_2.png?alt=media" 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="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-9d87a87772bab341f9ff9570f899db12fbbe5db4%2Fzd_3.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-a8dae6ea7d43f439887338c6b75e81507178d7b9%2Fzd_4.png?alt=media" 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="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-0d0a25e06cf350ecfc76189c6a30a80eeb26e0bc%2Fzd_5.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-091d94ab90a0c569f5b4aa4dec97615f1045b16d%2Fzd_6.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-39d29c42d4366af81171958d4125d7d433c56276%2Fzd_7.png?alt=media" 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="https://766977813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMgClsjsTSlUrSU2WhwDe%2Fuploads%2Fgit-blob-7516cff906739909534d4eab178280f138b2f55f%2Fzd_8.png?alt=media" alt=""><figcaption></figcaption></figure>

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