> For the complete documentation index, see [llms.txt](https://docs.chatlayer.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatlayer.ai/integrateandcode/app-integrations/freshdesk.md).

# Freshdesk

With the Freshdesk integration, users can submit a new ticket to your customer support service through a bot

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

![](https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F8Jda1otn4YRFakRBCeCT%2Fimage.png?alt=media\&token=20ce11b7-5b1c-42b6-88bc-32dfe5e7ea6b)

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

![](https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FTFkWaC6wYoob0R7SdMvZ%2Fimage.png?alt=media\&token=e193bc36-fbdf-4600-b8fa-2f2c852424ad)

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

![](https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F1PqWimlTM1dpnvaZxzLk%2Fimage.png?alt=media\&token=b793ffef-64fd-44fb-b989-f34e996b8f66)

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)

![](https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F7lmGbF7K41dQE60dmE0V%2Fimage.png?alt=media\&token=72e1e315-289a-47cd-80b3-b7afeb52a9f7)

### **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](https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F7SC5i7TFAVmc28dpZK1G%2Fimage.png?alt=media\&token=4933465b-5d68-48f6-856c-6fdddadbde1f)

Next, your Actions could be as followed:

**1 – Create ticket**

![](https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FWwaPyJwf2ykiL8pVZqU8%2Fimage.png?alt=media\&token=be804507-807e-4d32-a015-9fae0700f97c)

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:

![](https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FyEAWKwLxkkGolWK0E5mL%2Fimage.png?alt=media\&token=5854aea9-69df-438a-ae8c-4912bcf26f9e)

**2 – Add notes to a ticket**

![](https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FUHUnDj0YJuy0dlYHfD8b%2Fimage.png?alt=media\&token=a348bd3c-0e8d-4c39-a49f-b2a622b98777)

**3 – Add replies to a ticket**

![](https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FhtO4wNjeo0z7FZHjf2na%2Fimage.png?alt=media\&token=df754d6a-f65a-4a36-a473-62f09c46b795)

**4 – Create a contact**

![](https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FFzqfr5bexhawsG81nwFI%2Fimage.png?alt=media\&token=72b57d31-bd71-4896-808f-e2c3e705a92c)

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


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.chatlayer.ai/integrateandcode/app-integrations/freshdesk.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
