Skip to main content
Skip table of contents

SMS Routings

Set up chat routings for your SMS.


Connectors 

Connectors 

Go to Manage → Routings → SMS → connectors. You will see an overview of your inbound connectors.

You can view a diagram tree of each connector by clicking the grey tree button in the Actions column.

Click the Title of a connector to open its details or click Add new to create a new connector. The inbound connector details will open.

Access token: this field will be filled in automatically after you save the connector.

Title: enter a title.

Description: enter a description.

Connector type: Select connector type SMS Connect or Hyper SMS.

API token: Contact us to set up API token for you.

Delivery receipt: Enable/disable the delivery receipt. It will be sent to you by email.

Allow diacritics: If enabled, diacritics will not be stripped off.

Number prefixes: Definition of phone number prefixes (country codes)
                               0044+0|XXXXXXXXXX
                               00420+XXXXXXXXX

Sender: Sender phone number (PBX identification).
              Will be displayed to the recipient.
              For "Connector type":
              Hyper SMS: you can leave the field blank. The number of the SIM card(s) we are hosting will be used.
              SMS Connect: you can use Info (free identification) or a paid identification: a geographical number or alphanumeric text up to 11 characters.

PrioritySet the queue's priority for distribution of activities to agents: 20 – highest, 0 – lowest. When agents are logged in to several queues, activities from queues with a higher priority will be distributed to them first.

Next destination: 

select where the chat should be routed.

You can select:

  1. Terminate. The chat will end or be offline – select which Terminate option to use.

  2. Queue. Select which queue the chat will be routed to.

  3. Time condition. Decide where the chat will be routed depending on the date/time.

  4. Decision tree. Route the chat to a chat bot.

CLID rules for inbound: Modify incoming callerID based on patterns
                                         Pattern 421|9X. remove prefix 421 if number starts with 421 9. E.g. 421 987 654 321 -> 987 654 321
                                         Pattern 00420+XXXXXXXXX append prefix 00420 if number has 9 digits. E.g. 987 654 321 -> 00420 987 654 321
                                         Pattern 00421+0|XXXXXXXXX remove prefix 0 and append prefix 00421 if number has 10 digits and starts with 0. E.g. 0 123 456 789 -> 00421 123 456 789

Click Save button to save your changes.


Automessages

Automessages

Route your web chat to automessages if you want to send customers messages.

To set up automatic messages, go to Manage → Routings → SMS→ Automessages. You will see an overview of your automessages.

You can view a diagram tree of each automessage by clicking the grey tree button in the Actions column.

Click the Title of an automessage to open its details or click Add new to create a new automessage. The automessage details will open.

When you are done creating or editing an automesaage, click Save to return to the automessage overview and make sure to click the Apply configuration changes button in the top right corner.

It will take a few minutes for the changes to take effect on your website. If you want to see them immediately, open your website in a new incognito mode window.

Sandbox

Set up your automessages in this column. If you are editing an automessage, you can compare your new settings to those currently in use in the Production column.

All fields are mandatory except Description and Text.

Fill out the Title and Description.

Next destination: select where the web chat should be routed next.

You can select:

  1. Another automessage.

  2. Terminate. The chat will end or be offline – select which Terminate option to use.

  3. Queue. Select which queue the web chat will be routed to.

  4. Time condition. Decide where the chat will be routed depending on the date/time.

  5. Decision tree. Route the chat to a chat bot.

Message

Time: select the delay between when the chat is routed to the automessage and when the message is sent. The timer starts as soon as the chat is routed here – take this into account when setting up multiple messages (Time is not the interval between messages).

Text: enter your message.


Time Conditions 

Time Conditions 

To set up your business hours and bank holidays, go to Manage → Routings → SMS → Time conditions. You will see an overview of your time conditions.

You can view a diagram tree of each time condition by clicking the grey tree button in the Actions column.

Click the Title of a time condition to open its details or click Add new to create a new time condition. The time condition details will open.

When you are done creating or editing a time condition, click Save to return to the time conditions overview and make sure to click the Apply configuration changes button in the top right corner.

Sandbox

Set up your time conditions in this column. If you are editing a time condition, you can compare your new settings to those currently in use in the Production column.

All fields are mandatory except Description.

Title: enter your time condition title. Select the title in connectors to use the time condition in the routing/connector.

Description: enter a description.

Time group: select the Time group you would like to use from the drop down menu. You need to have at least one Time group set up to use Time conditions. You can also use the blue drop down menu to view or edit the selected time group or to create a new one – this will open Manage → Settings → Time groups.

If it is open: select what to do if the current day and time matches that of the time group.

You can select:

  1. Terminate. The chat will end or be offline – select which Terminate option to use.

  2. Queue. Select which queue the chat will be routed to.

  3. Another time condition (we recommend to set up your time groups in a way that you don't need to route from a time condition to another one).

  4. Decision tree. Route the chat to a chat bot.

If it is closed: select what to do if the current day and time does NOT match that of the time group. The options are the same as above.


Decision Trees 

 Decision Trees 

Use decision trees to set up your Messenger chatbot.

Go to Manage → Routings → SMS → Decision trees. You will see an overview of your Decision trees.

You can view a diagram tree of each decision tree by clicking the grey tree button in the Actions column.

Click the Title of a decision tree to open its details or click Add new to create a new decision tree. The decision tree editor will open.

When you are done creating or editing a decision tree, click Save to return to the decision tree overview and make sure to click the Apply configuration changes button in the top right corner.

The decision tree editor will display a diagram of individual decisions. When creating a new decision tree, you will only see the first step, "Welcome message". Click a decision to select it, then click the edit button on the right hand side:

The decision details will open.

Fill out the decision Title and Description (optional) in the header, then set up your decision. We recommend reading through the templating language documentation.

Actions

Request: request data from a URL. Fill out the URL address where your data is stored and name the object that will contain the returned data so you can display it in the chat.

Send message: send a message in the web chat. Enter a default message and any language variations – the customer's language will be detected automatically.

Save data: store own data for later usage.

Create ticket: enter the ticket's Title, select a Category and enter a Comment.

Groups

Condition: set up conditional actions. First set up your condition parameters, click Done and then drag and drop actions into the fields in the condition.

Loop: walk through array items. If you use action Target, loop ends.

Targets

Target

  1. Next destination: select if the target is another decision in the tree (Decision) or a final target such as a queue or a time condition (App).

    If you have selected:

    • Decision – choose a target decision from the drop down list or click the blue plus button to add a new decision. Type the new decision name. You can edit the new target decision in the diagram once you save the current one and return to the decision tree editor.

    • App – select the target type (Automessages, Terminate, Decision tree, Queue, Time condition) and the target.

  2. Execution: select whether to go to the target as soon as the customer reaches the decision (Immediately) or whether action from the customer's side is necessary (When client choses it).

    If you have selected When client choses it, select your Answer type:

    • Pattern: the customer can type their answer. Enter a pattern in backslashes that the customer's answer must fit to trigger this action. E.g. /[0-9]{6}/ will fit if the customer enters at least a six digit number. See Regular expression syntax for more info.

    • Similar: the customer can type their answer. Enter a list of words that will trigger this action separated by commas.

You can set up language variants in all combinations except Decision-Immediately and Decision-When client chooses it-Generated buttons.

Add another target to set up different targets depending on the customer's answer.

If you use Similar or Pattern as an answer in your decision, a "Default answer" radio button will appear next to each answer. Select the answer that should be triggered when the customer's answer does not fit any of the patterns or words.


Chatbots

Chatbots

Set up a connection to a third-party chatbot.

Go to Manage → Routings → Messenger → Chatbots. You will see an overview of your chatbots.

Click the Title of a chatbot to open its details or click Add new to create a new one. The chatbot details will open.

When you are done creating or editing a chatbot, click Save to return to the chatbot overview and make sure to click the Apply configuration changes button in the top right corner.

It will take a few minutes for the changes to take effect on your website. If you want to see them immediately, open your website in a new incognito mode window.

Set up your chatbot set up in the Sandbox column. If you are editing a chatbot, you can compare your new settings to those currently in use in the Production column.

Title: enter a title.

Description : enter a description.

Fallback: select where the chat should be routed if the Callback URL is not available.

Callback URL: enter the endpoint where data from the chatbot should be sent. Filled in automatically – you do not need to change it.

Chatbot URL: enter the URL of your chatbot.

Send start message: forward the client initialisation message (if it exists) as part of the first chatbot request.

Structure of Data Sent to the Chatbot

Structure of Data Sent to the Chatbot

  • message = message object

  • interaction = interaction object

  • ? = if empty, null is sent


'?name' => '{{message.name}}',
'?time' => '{{message.time_created}}',
'?direction' => '{{message.direction}}',
'conversation.name' => '{{interaction.name}}',
'conversation.title' => '{{interaction.title}}',
'conversation.time' => '{{interaction.time}}',
'conversation.response_url' => '{{config.callback}}?hash={{interactionHash}}',
'text' => '{{text}}',

Example 1:

/code

//request data - text message and list of attachments
POST chatbotURL
{
"name": "messages_62fe1518a9820077126134",
"time": "2022-08-18 12:31:52",
"direction": "IN",
"conversation": {
"name": "web_62fe14acd567e380992326",
"title": "",
"time": "2022-08-18 12:30:04",
"response_url": "https://XXX.daktela.com/external/web/api/chatbotUpdate?hash=b9f68fa377263e8f3018a405f25f44add10fab4c",
"customFields": [
{
"name": "number",
"title": "Number we want to know",
"value": "22"
},{
"name": "...",
"title": "....",
"value": "...."
},
]
},
"text": "xxx",
"attachments": [
{
"link": "https://xxx.daktela.com/external/web/chat_file.php?accessToken=on87q29oq60q02nqo6nr3oo7s5r7r607&chat=web_62fe14acd567e380992326&mapper=chatsMessage&name=29",
"title": "Name of screenshot.png",
"type": "image/png",
"size": "122221"
},
{
"link": "...",
"type": "....",
"size": "...."
}
],
"referer": "https://xxx.com/demo/chat.html"
}


Example 2:

//request data example - pressed quick reply button
POST chatbotURL
{
"name": "messages_62fe1518a9820077126134",
"time": "2022-08-18 12:31:52",
"direction": "IN",
"conversation": {
"name": "web_62fe14acd567e380992326",
"title": "",
"time": "2022-08-18 12:30:04",
"response_url": "https://XXX.daktela.com/external/web/api/chatbotUpdate?hash=b9f68fa377263e8f3018a405f25f44add10fab4c",
"customFields": []
},
"quickreply":
{
"name": "quickReplyName1",
},
"referer": "https://xxx.com/demo/chat.html"
}

Expected Structure of Received Data

Expected Structure of Received Data

'conversation.name' – interaction name
'hash' – identifies into which conversation the incoming message belongs
'text' – incoming message
'transfer' – name of queue where the conversation should be transferred

Example:

//response example
POST https://XXX.daktela.com/external/web/api/chatbotUpdate
{
"conversation": {
"name": "web_62fe14acd567e380992326"
},
"text": "textMessage",
"button": [
{
"text": "xxx.com",
"url": "https://xxx.com/api/"
},
{
"text": "...",
"url": "...."
}
],
"quickreply": [
{
"name": "quickReplyName1",
"text": "Quick reply Name 1"
},
{
"name": "...."
"text": "...."
}
],
"queue": "10001",
"hash": "b9f68fa377263e8f3018a405f25f44add10fab4c",
}


Terminate

Terminate

Set up how your chats will end in different scenarios.

Go to Manage → Routings → SMS → Terminate. You will see an overview of your terminate set ups.

You can view a diagram tree of each terminate set up by clicking the grey tree button in the Actions column.

Click the Title of a terminate set up to open its details or click Add new to create a terminate set up. The terminate details will open.

When you are done creating or editing a terminate set up, click Save to return to the terminate overview and make sure to click the Apply configuration changes button in the top right corner.

Set up your terminate set up in the Sandbox column. If you are editing a terminate set up, you can compare your new settings to those currently in use in the Production column.

Title: enter a title.

Description : enter a description.

Disconnection cause: select from the dropdown list. This is for internal use only – the customer will not see this info.

Queue: select which queue the chat will belong to if it is terminated using this set up.

If you want to receive missed SMS notifications, you must select a queue.

Auto response: select a template to send to the customer if the chat is terminated using this set up.

Answered: toggle whether a chat terminated using this set up is logged as answered.





JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.