> 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.bird.com/toky-en/integrationstokyapp/how-to-enable-replies-with-sms-from-zendesk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
