Address Extraction interaction has been developed for identifying addresses from the users’ responses. Also, the functionality allows you to ask users to share their location.
- Click Add new interaction/plugin
- Select Address Extraction
- Specify the interaction name, e.g. ‘Address Extraction’
- (Optional) Tick Highlight Extracted data in chat for a better user experience
- Click the Add button to add the interaction to the bot’s structure:
After that, specify Bot’s Message along with an Error Response:
Since Address Extraction interaction is designed to parse user messages and detect user addresses via Google Maps API, you need to obtain a map API key before using this interaction.
There are three options:
1. Use your own API key
You can enter your own API key in:
Profile page -> Map settings tab,
Bot -> Configure -> Map settings tab.
Click the Bot map settings or Profile map settings button to open the tab you need. Next, follow the instructions in the tab to obtain a key. Once you have entered a key it will appear automatically in the Maps API Key tab.
When using the Collaboration feature, keys are hidden for bot administrators. Only the chatbot owner can see the key.
2. Upgrade your bot to PRO-Plan
Bots upgraded to Pro Plan can utilize the Address Extraction interaction without the need to input a Google Maps API Key. For Pro bots, it is the SnatchBot system that pays for Google map requests, not you.
All other benefits granted by Pro plan subscription are mentioned here.
3. Start free trial
You have the option to activate the Trial period from this tab. Free Trial gives you 30,000 free messages for 14 days. The trial applies to the Translation and Address Extraction interactions, so you can use them freely without entering API keys.
A trial period can be activated only once in a single account.
The free trial does not apply to the administrator’s bots when using the Collaboration feature.
If a user enters an invalid address, then the bot will give the Error response:
If a user enters a valid address, 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 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.
In order to see the full extracted address in the Test chat, press the 'Highlighted extracted data' button.
Make sure you have checked the 'Highlighted extracted data' box in the interaction cell (or during creating the interaction):
This functionality allows you to ask users to share their live location.
Live location is supported in the following channels: Facebook Messenger (mobile), Skype, Line, Webchat, Line, Viber and Telegram. In Facebook Messenger and Skype users can share their location by using Attach -> Location functionality of the app.
Tick the 'Allow live location?' checkbox to enable/disable the 'Share location' feature. In the 'Button name' field you can change the name of the button that will appear in the chat.
When the feature is enabled, your end-users will see the button in the chat when they go this interaction:
If you enable ‘share location’ and a user goes to the address extraction interaction when using the Telegram channel, then the system will substitute all the items from the Persistent Menu with the 'Share location' button. The items will return back once the user leaves the interaction.
Upon pressing the button the system begins connecting to Google Maps.
Once user's location is detected, they will see a map and the Share location button in the chat:
Updated 4 days ago
Collects and specifies numeric representations of time from the input of a user, converting it in seconds with millisecond precision.