# Freshdesk

You can connect the Freshdesk app to Chatlayer by using the Action block. In this block, choose *Integration widget*, then under 'App', select *Freshdesk* and click on 'Connect a new Freshdesk account'.

![](/files/AdCkPbrcueIn2xdKU0sb)

After clicking on “Connect new account”, you’ll see this pop-up:

![](/files/3K1U1CZVil5MN1smySbk)

To find your Domain and API Key, please head to your profile page on Freshdesk:

![](/files/3UoGoM4wMyy4T7rV6XSS)

The part of the URL inside the green rectangle is your account’s Domain. The green rectangle on the right highlights your API key.

After you've entered this info in the Chatlayer Action block and the connection is set up, you’ll be able to pick the action you want to perform within this block:

· Create ticket

· Add notes to a ticket (update ticket)

· Add replies to a ticket (send an email to the user)

· Create contact (create new user)

![](/files/8fKXTOITze5jNpfzHbP0)

### **Gathering information**

You'll need to ask the user for the information needed to create a new ticket, like for example, the user's name. You can do so with an Collect input block. By saving the user’s response as a variable, you'll be able to create a new ticket:

![Asking the user for their name](/files/wQfQg3q1UTE2gLS6DWK7)

Next, your Actions could be as followed:

**1 – Create ticket**

![](/files/qJTKXvxoItfnigjhQSYu)

If your tickets have custom fields, you can also include them in the Action block and request them thought the bot, as seen in "language" and "country" below:

![](/files/bnJ4u8eU7hJb79pTiRKk)

**2 – Add notes to a ticket**

![](/files/jdiMg8Qkd3QW7JTGWlzX)

**3 – Add replies to a ticket**&#x20;

![](/files/Bj3Q17iJAcmf8AlFBoAN)

**4 – Create a contact**

![](/files/KLSOqIEretwLtBb7t2SK)

&#x20;And that's it, your Freshdesk connection is set up and ready to go!


---

# 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.chatlayer.ai/integrateandcode/app-integrations/freshdesk.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.
