# Configure a route

The routing section enables you to link the workflows you've built to the messaging channels you want to use.&#x20;

You can define the workflow and step that gets triggered when a customer for example dials a certain USSD code or messages your WhatsApp Business account.&#x20;

{% hint style="info" %}
You can only set up routes for the channels that are set up in your Clickatell account. You can add one or more routes for each of your channels.&#x20;
{% endhint %}

{% embed url="<https://vimeo.com/761774560/27034bddf1?share=copy>" %}

## **Configure your routes**

1. Under *Configuration* on the left, select *Routing*.
2. Select the channel you want to configure a route for.
3. Click *+ Add new Route*.
4. Complete the required fields as specified in the [*WhatsApp routing*](#whatsapp-routing)*,* [*SMS routing*](#sms-routing)*,* and [*USSD routing*](#ussd-routing) sections below.
5. Click *Save Routes*.

You can view and test the workflows (except the dynamic API flow) via the [Previewer ](https://guides.clickatell.com/flow/workflow-management/using-the-previewer)to ensure it is working as you intended before deploying it to production.

{% hint style="info" %}
Until a route is set up, your customers will not have access to the workflow. &#x20;
{% endhint %}

<figure><img src="https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/4OhzOU3jdrfOOAdV20rM/image.png" alt=""><figcaption></figcaption></figure>

### WhatsApp routing

To configure a WhatsApp route:&#x20;

1. Specify the *API ID* and *API Key* of your WhatsApp Business account.&#x20;
   * These are available in the Clickatell Portal under M*y Workspace -> API Integrations*.
2. Select the *Service* you want to route your WhatsApp traffic through.&#x20;
   * The default is Chat Flow, but if you are only making use of Chat Desk or Clickatell AI, you can also select to route your traffic directly via those services.
3. Select the workflow and step you want to trigger when a customer engages with the WhatsApp Business account.
   * You can only select from the workflows defined in your current environment.

<figure><img src="https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/TrMtyveNmzHsal5vYhpL/image.png" alt=""><figcaption><p>Linking your WhatsApp channel to Chat Flow </p></figcaption></figure>

### SMS Routing

To configure an SMS route:&#x20;

1. Specify the *API ID* and *API Key.*
   * These are available in the Clickatell Portal under M*y Workspace -> API Integrations*.
2. Select the *Service* you want to route your SMS traffic through.&#x20;
   * The default is Chat Flow, but if you are only making use of Chat Desk or Clickatell AI, you can also select to route your traffic directly via those services.
3. Select the workflow and step you want to trigger when users engage via SMS.&#x20;
   * You can only select from the workflows defined in your current environment.

<figure><img src="https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/NAG5UDhKBbL6SvOfdXLl/image.png" alt=""><figcaption><p>Linking your SMS channel to Chat Flow </p></figcaption></figure>

### USSD routing

To configure a USSD route:&#x20;

1. Specify the USSD code/subcode.&#x20;
2. Select the workflow and step you want to trigger when the code/ subcode is dialed (you can only select from the workflows defined in your current environment).

<figure><img src="https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/KYeIqfrZKpqmgFyacVDw/image.png" alt=""><figcaption><p>Linking your USSD channel to Chat Flow </p></figcaption></figure>
