> 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/human-offloading-live-chat/genesys-purecloud.md).

# Genesys Cloud

Aprenda como configurar seu chatbot Chatlayer com o Genesys Cloud (anteriormente Genesys PureCloud) para handover humano

{% hint style="danger" %}
Esta integração foi marcada como obsoleta pela Genesys. Se você estiver procurando uma integração alternativa com este provedor, entre em contato com [o suporte](https://docs.chatlayer.ai/support/get-in-touch) e forneceremos mais informações.
{% endhint %}

Na plataforma Genesys Cloud, acesse Admin > Integrações > OAuth

![](https://181262846-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLTwFwbOqJj4dDhg8Ju%2F-M3VWtJ-zQPNbT6ZUGF2%2F-M3VXsx1vyddZGzY2gNm%2Fimage.png?alt=media\&token=21497db4-d4e4-45ff-812b-200b922152ef)

Adicione um novo cliente OAuth para o Chatlayer.ai usar

![](https://181262846-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLTwFwbOqJj4dDhg8Ju%2F-M3VWtJ-zQPNbT6ZUGF2%2F-M3VY7go935jHcLRRLph%2Fimage.png?alt=media\&token=504b7aa2-9d73-481f-8c58-ae387995dc18)

Escolha um nome e uma descrição para o app. Deixe a duração do token inalterada e selecione o tipo de concessão Client Credentials.

![](https://181262846-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLTwFwbOqJj4dDhg8Ju%2F-M3VWtJ-zQPNbT6ZUGF2%2F-M3VYOuysFbHPvJLGkB1%2Fimage.png?alt=media\&token=cc5e8c61-0f09-40ab-920f-86004966afe7)

Na aba de funções, atribua todas as funções

![](https://181262846-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLTwFwbOqJj4dDhg8Ju%2F-M3kfwTun7yY0mR34HC-%2F-M3kgHELb9tpTm5iLOq2%2Fimage.png?alt=media\&token=24c80df8-15a9-4d5c-ac9c-11f60e2959a7)

Copie o ID do cliente recém-criado e o segredo do cliente para sua integração de Offloading do Genesys Cloud no Chatlayer

![](https://181262846-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLTwFwbOqJj4dDhg8Ju%2F-M3VWtJ-zQPNbT6ZUGF2%2F-M3Vau8b2OrTfPLhBoLk%2Fimage.png?alt=media\&token=a537fc73-0e6d-432f-b607-cc5152647eb1)

![](https://181262846-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLTwFwbOqJj4dDhg8Ju%2F-M3kbJh8rEaINr1LZpUE%2F-M3kbhuQnvDwYezgIYXp%2Fimage.png?alt=media\&token=b65bf80c-a962-4248-a583-fb03512d8e94)

### Crie a implantação do widget

Crie um novo Widget acessando **Admin > Contact Center > Widgets > Criar Widget**

![](https://181262846-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLTwFwbOqJj4dDhg8Ju%2F-M3kbJh8rEaINr1LZpUE%2F-M3kbw1gxOOIgvtpuL_j%2Fimage.png?alt=media\&token=38c31f68-7161-4d22-8fd8-04dbeddb879d)

Copie a chave de implantação para a tela de configuração de offloading no Chatlayer.

![](https://181262846-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLTwFwbOqJj4dDhg8Ju%2F-M3kbJh8rEaINr1LZpUE%2F-M3kcCspfo5rtL11tmap%2Fimage.png?alt=media\&token=a15a0d4b-172f-4b3a-a145-1e35c69d88fd)

## Enviando um usuário para o Genesys Cloud

Para transferir seu usuário para um agente ao vivo no Genesys Cloud, crie uma ação no ponto do fluxo em que você deseja que o usuário seja encaminhado.

<figure><img src="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FyJ8jPo1HfDjYOOIqOrHW%2Fimage.png?alt=media&amp;token=b01f6afe-b8e1-49c3-86a7-a1b5dd60d92d" alt=""><figcaption></figcaption></figure>

Adicione a ação "Enviar para provedor de offloading" ao seu bloco e configure-a com as definições corretas para o Genesys Cloud.

Selecione a fila para a qual as conversas do seu chatbot serão encaminhadas.

<figure><img src="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FKO85x6RfXAGrgIOYGo8q%2Fimage.png?alt=media&amp;token=2cea8474-6965-490d-8dbc-750ae8dadd7e" alt=""><figcaption></figcaption></figure>

Assim que um usuário chegar a esta parte da conversa, o offloading para o Genesys Cloud será acionado. O bot será pausado automaticamente quando um usuário chegar a esta ação. Quando o agente encerrar a conversa, o bot será retomado.

### Informações do usuário e campos personalizados

Quando a conversa chegar a um bloco de transferência para humano para o Genesys Cloud, o Chatlayer preencherá as seguintes informações sobre o seu usuário usando variáveis, se estiverem disponíveis na sessão de chat:

**Nome**: `genesysCloud.firstName` OU `internal.user.firstName`\
**Sobrenome**: `genesysCloud.lastName` OU `internal.user.lastName`\
**Telefone** **Número**: `genesysCloud.phoneNumber`\
**E-mail**: `genesysCloud.email`

Talvez você queira passar informações adicionais sobre o usuário para a Genesys, não cobertas pelos campos acima. Para lidar com isso, você pode declarar variáveis adicionais de sessão no `genesysCloud.customFields` namespace. Elas serão adicionadas como campos personalizados no Genesys Cloud.

Por exemplo, para adicionar a localização do usuário como um campo personalizado, você ajustaria o fluxo do seu bot para perguntar a localização do usuário e armazenaria a resposta como uma variável em `genesysCloud.customFields.location`


---

# 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/human-offloading-live-chat/genesys-purecloud.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.
