bots


How do I parse string response in api.ai?


While creating Intents in Api.ai, I can parse sys or user parameters as listed here:
https://docs.api.ai/docs/concept-entities#section-user-entities
However if I have to parse a string response, there isn't a way to add that as a parameter. Any workaround to parse a string response from user to fetch an entity?
Like for e.g.,
Customer's name is John.
I want to retrieve John in my action.
I think you can utilize api.ai Contexts to Achieve that..
check Context documentation
Yes , It is possible.
1)First you should set the output context in intent from which you want to fetch customer's name
e.g. setting output context
2) Then define the input context with same name in intent where you want to get your customer's name e.g. setting input context
3) then you can access name by defining the parameter with #<context_name>.<parameter_name> e.g. #send.name
Hope this might help!!

Related Links

Wit.ai Dynamic quick replies and random responses? How
I'm trying to implement a quote system in mIRC for my Twitch bot, reading from the text file works, but adding doesn't
How to set Slack bot presence “online” when using Events API
how to save the data using state clinet in bots
Connecting LUIS dialog to form dialog and mapping builtin fields
ValidationResult throws : “Object reference not set to an instance of an object”. when passing back choices
How to disconnect LUIS of Microsoft Bot Connector selectively?
Skype bot in “In Review” Status
Bot framework documentation qna maker [closed]
How to make telegram bot to remove links?
Testing in Bot Framework returns 401 Unauthorized
Bot Framework .Net Activity reply = activity.CreateReply(
How to access the filled data when using Formflow Namespace in Skype Bot Framework?
Microsoft bot framework getting the users time zone
How to get credentials for the Direct Line API microsoft bot framework?
Telegram bots: How much API keys can I generate?

Categories

HOME
php
cocoapods
azure-functions
blast
apple-push-notifications
yaml
angular-ui-grid
xcode8.1
subdomain
code-formatting
out-of-memory
ios-simulator
dronekit-python
header
capistrano
ui-automation
tup
colors
rangy
pushdown-automaton
xbox360
reselect
user-defined-types
home
cmake-gui
channel
background-color
sparkle
sales
plantuml
om-next
payeezy
bean-validation
pdfnet
forms-authentication
uivisualeffectview
aurelia-http-client
grunt-contrib-watch
robust
optionaldataexception
web-inspector
flume-twitter
directwrite
amazon-elastic-beanstalk
test-data
glassfish-4.1
network-protocols
emacs25
word-2016
hmmlearn
boost-compute
yargs
tsqlt
meld
psd
management-studio-express
wif4.5
flask-security
ui4j
json-spirit
cryptojs
ambiguity
dnx50
360-degrees
wlanapi
roxygen2
compositetype
artisan
ampersand
clarion
camus
mathematical-expressions
tidyr
uno
smacss
qt5.4
tabris
visual-studio-6
windows-messages
rails-api
gpu-programming
jms-serializer
nosql-aggregation
profiles
django-sites
disjoint-union
quickgraph
eager-loading
web-frameworks
telerik-ajax
image-scanner
dropshadow
navigationcontroller
delphi-prism
filelock
startupscript
fragment-identifier
eaccelerator
mygeneration
jdownloader
odac
reliability
rational-unified-process
jboss-mdb
objectinstantiation
community-server
account-management

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App