SnatchBot Support

Welcome to the SnatchBot Support. You'll find comprehensive guides and documentation to help you start working with SnatchBot as quickly as possible, as well as support if you get stuck. Let's jump right in!

The community forum is not a helpdesk
Let’s put this in the front - the vast majority of people here do not work for SnatchBot.

Get Started    SNATCHBOT API

Phone Extraction

Identifies and collects a valid phone number from the input of a user.

The Phone Extraction interaction will help you to find and highlight valid telephone numbers from users’ responses.

To create this interaction, click the 'Add new interaction/plugin' button and select the ‘Phone Extraction’ interaction type. After that, specify the interaction name, e.g. ‘Telephone’. Click the 'Add' button to add the interaction to the bot’s structure:

For a better user experience, select the ‘Highlight Extracted data in chat’ checkbox:

After that, you should specify the bot’s message along with an error response:

In the Phone tab specify two-letter country codes that the bot will use for identifying valid phone numbers:

👍

Note

  • If you leave the 'Phone codes' field blank, the interaction will trigger if a user enters any valid phone number, which starts with '+' symbol.
  • If you enter some codes in the 'Phone codes' field, for example, FR, US, then the interaction will trigger if a user enters any phone number which contains one of the selected codes. In this case, it does not matter if the response contains the “+” symbol or not. Also, if a user enters any phone number which does not contain one of the selected codes, then the bot will send the Error response.

The length of the phone number depends on the international code.

To see a full list of country phone codes, please visit this page.

Facebook User Phone Number

For the Facebook channel you have an option to add an additional Quick Reply to the interaction, which will suggest users to send their phone number, which is extracted from the user’s Facebook account. This option is located in the Connections tab:

How does it work?

If a user enters an invalid phone number, then the bot will give the Error response:

If a user enters a valid phone number, then the system will trigger the interaction that is set in the Connections tab. By default it is a Fallback connection which is set to 'do nothing'. In this case the bot will give a Bot message again. If you change the Fallback then the system will redirect a user to another interaction.

The same goes for conditionals connections: if you add a simple or NLP connection, and if a user's response matches the conditions of one of the connections, then the system will redirect a user to another interaction.

👍

The default valid format for a Phone extraction:
+XXXXXXXXXXX

In order to see the extracted phone number in the Test chat, press the 'Highlighted extracted data' button:

As needed, you can connect the Phone Extraction interaction to the other types of interaction. For example, you could connect it to a Bot Statement thanking the user for providing their number. Or, if no conditions are met, the bot can be directed to move to another interaction:

Watch this video tutorial ''Obtaining user phone numbers with a chatbot''

Updated 14 days ago


Next Steps

Analyzes user’s input and applies a timestamp.

Date Extraction

Phone Extraction


Identifies and collects a valid phone number from the input of a user.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.