Reputation: 1425
I have one intent named Call with two follow up intents Yes & No.
I have one more intent OrderChange. As a respone in OrderChange intent, bot tells asks user if users wants to call customer support or not. Based on user's yes/no, i want to trigger Call intent's follow-up yes or no intent.
.
How can I call follow up intent of some intent from intent other than it's parent?
I explored API.ai documentation, but not able to find anything solving my query.
Upvotes: 1
Views: 3225
Reputation: 50701
Followup Intents are really just Intents with a specific Context set for them as an Incoming Context. You can do the same thing without using Followup Intents, but instead just using regular Intents and specifying the incoming Context to use.
So, to use your example, both the "Call Customer Support?" Intent and the "Call" Intent could set an outgoing context of "call_question". You can then create a context called "call.yes" that takes an incoming context of "call_question" and has sample phrases such as "yes", "yup", "sure", "please", and so forth. (And, similarly, a "call.no" context which has the same incoming context and has sample phrases such as "no", "never", "no thank you", etc.)
Upvotes: 4