# Genesys SMS

{% hint style="info" %}
This feature is currently available to enterprise tiers only.
{% endhint %}

### Prerequisites

Assigning this channel to an application requires a one-time integration of Genesys in your NLX workspace.

<a href="../../../integrations/types/channels/genesys" class="button primary">Integrate Genesys</a>

### Add channel to app

1. Select *Configuration* tab of your application&#x20;
2. Choose *+ Add channel* under *Delivery* section > Choose Genesys SMS
3. Choose your *Genesys* workspace integration from the *Integration* dropdown
4. Create an [application build and deploy](https://docs.nlx.ai/platform/nlx-platform-guide/setup#deployment)

Once your application is deployed in NLX, log in to your Genesys instance.

5. From your Genesys instance, go to *Admin* > *Architect*
6. Select *Inbound Call Flow*
7. Complete all necessary fields > Click *Create Flow*
8. Once in the Call Flow, click *Reusable Tasks* in the left pane
9. Select *Add action here > C*lick *Toolbox* > *Call Lex V2 Bot*
10. Call via API the `putIntegrationsBotconnectorIntegrationIdBots` function using the Genesys SDK. The endpoint is `/api/v2/integrations/botconnector/{integrationId}/bots`

    ```
    {
    		"chatBots": [
    			{
    				"id": "11095674-46cc-4a87-b0bb-385b317ad547",
    				"name": "SMS Dev",
    				"versions": [
    					{
    						"version": "prod",
    						"supportedLanguages": [
    							"en-us"
    						],
    						"intents": [
    							{
    								"name": "Success"
    							},
    							{
    								"name": "Escalation"
    							}
    						]
    					}
    				]
    			}
    		]
    	}
    ```
11. Choose your application name (thanks to Step 6) from the dropdown
12. For the *Initial Intent Name* field, select the Intent you want to trigger initially (e.g., Welcome)
13. Under *Input*, enter the following three inputs:
    * Enter `nlx_botUrl` in Key Name field > Retrieve URL from the [deployment details link](https://docs.nlx.ai/platform/nlx-platform-guide/setup#deployment) in your NLX workspace for Variable to Assign field
    * Enter `nlx_conversationID` in Key Name field > Add the `Call.ConversationID` Genesys variable to the Variable to Assign field
    * Enter `nlx_customerNumber` in Key Name field > Add the `Call.Ani` Genesys variable to the Variable to Assign field
14. Under *Outputs*, enter `nlx_action` in Key Name field and *Flow\.nlx\_action* in Variable to Assign field
15. You may act on the Flow\.nlx\_action to to escalate to a human agent. To achieve this, set the following parameters:
    * *Name*: `Decision`
    * *Expression:* `Flow.nlx_action=="ESCALATE"`

<figure><img src="https://2737319166-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHCxYxhIU0Bqkjj942mGk%2Fuploads%2F3fHJiXntFSZFP2INgxtT%2Fsms.png?alt=media&#x26;token=0b6ab037-5a61-460d-841a-1c26565d5f25" alt=""><figcaption><p>Flow in Genesys</p></figcaption></figure>

Need more context? See official [Genesys documentation](https://help.mypurecloud.com/articles/call-lex-v2-bot-action/)


---

# 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.nlx.ai/platform/nlx-platform-guide/ai-applications/deployment/managing-channels/genesys-sms.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.
