Can FlowXo bots use NLP's

(Janmajay Adhikari) #1

Hi Team,
Till now I managed to create an Service order and see the status of the service order from the chat bot. The bot responds with a statement which is hard coded with dynamic values in the flow actions. Does the bot Natural Language processing api’s to deliver a smooth interaction.

Problem : What I mean is the Bot should understand the intent of my question instead of giving very specific command, like saying “I have few customer meetings, could you please show me my SR’s”

Thanks,
Janmajay

(Daniel Beckett) #2

@Janmajay

We’ve just published a tutorial on Using Flow XO with API.AI which should give you a better idea of how to connect your flows to their service for NLP support. Hopefully you find the information useful - we’d love to hear any feedback that you have! :slightly_smiling_face:

1 Like
(Janmajay Adhikari) #3

@DanielBeckett @sarahpalombo @KarenBarker
Thanks for the tutorial. I went ahead and followed API.ai tutorial created a weather widget in API.ai console that fetches weather information from weather api via webhook. Also it returns static responses if user query(what user ask) is incomplete .

The FLOWXO tutorial suggest to use a catch all trigger.

Problems faced are below.
1.) I have configured HTTPS webhook to hit API.ai and set the request RAW data as below.
{
“query”: [
“{{catchall.message}}”
],
“contexts”: [{
“name”: “location”,
“lifespan”: 4
}],
“lang”: “en”,
“sessionId”: “{{catchall.user_id}}”
}

But when I checked interaction logs, query parameter gets populated with “start” due to which I get a static response from API.ai agent even before the user have entered any text in the chat bot. Below is the request that goes to API.ai.

{
“query”: [
“start”
],
“contexts”: [{
“name”: “location”,
“lifespan”: 4
}],
“lang”: “en”,
“sessionId”: “ok2r3a”
}

2.) The response from API.ai is of two types static and dynamic(fetched from webhook that retires data from weather api) for both response type, json format is different.

for static response - RESPONSE JSON has result field that contains speech key whoose value should be displayed data__result__speech

for dynamic response - RESPONSE JSON has fulfillment filed that contains speech key whoose value should be displayed.
data__fulfillment__speech

How can I set a output message in Send a Message flow action considering the fact that response JSON format is changing depending upon user input.

Thanks,
Janmajay

(Thallyson Dias) #4

would it be possible to update the tutorial?
It is outdated