> 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/chatlayer-documentation-pt-br/integrateandcode/app-integrations/freshdesk.md).

# Freshdesk

Com a integração do Freshdesk, os usuários podem enviar um novo ticket para o seu serviço de suporte ao cliente por meio de um bot

Você pode conectar o app Freshdesk ao Chatlayer usando o bloco Action. Nesse bloco, escolha *Widget de integração*, depois, em 'App', selecione *Freshdesk* e clique em 'Conectar uma nova conta Freshdesk'.

![](https://181262846-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)

Após clicar em “Conectar nova conta”, você verá este pop-up:

![](https://181262846-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)

Para encontrar seu Domínio e Chave de API, acesse sua página de perfil no Freshdesk:

![](https://181262846-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)

A parte da URL dentro do retângulo verde é o Domínio da sua conta. O retângulo verde à direita destaca sua chave de API.

Depois de inserir essas informações no bloco Action do Chatlayer e a conexão estar configurada, você poderá escolher a ação que deseja executar dentro deste bloco:

· Criar ticket

· Adicionar notas a um ticket (atualizar ticket)

· Adicionar respostas a um ticket (enviar um e-mail para o usuário)

· Criar contato (criar novo usuário)

![](https://181262846-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)

### **Coletando informações**

Você precisará pedir ao usuário as informações necessárias para criar um novo ticket, como, por exemplo, o nome do usuário. Você pode fazer isso com um bloco Coletar entrada. Ao salvar a resposta do usuário como uma variável, você poderá criar um novo ticket:

![Pedindo o nome do usuário](https://181262846-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)

Em seguida, suas Ações podem ser as seguintes:

**1 – Criar ticket**

![](https://181262846-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)

Se seus tickets tiverem campos personalizados, você também pode incluí-los no bloco Action e solicitá-los ao bot, como visto em "idioma" e "país" abaixo:

![](https://181262846-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 – Adicionar notas a um ticket**

![](https://181262846-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 – Adicionar respostas a um ticket**

![](https://181262846-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 – Criar um contato**

![](https://181262846-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)

E é isso, sua conexão com o Freshdesk está configurada e pronta para uso!


---

# 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/chatlayer-documentation-pt-br/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.
