Hannes
Hannes

Reputation: 3772

Always trigger custom follow-up intent

I have a (custom) follow-up intent that lets the user search through FAQ and returns the best match for the user's query. The intent has an entity (FAQQuery) assigned which should be matched to the "whole" user input.

How can I make sure that the follow-up intent is triggered for any user input? As of now the some phrases/words trigger other intents of my bot configuration.

Thanks for your help!

Upvotes: 2

Views: 1100

Answers (1)

Prisoner
Prisoner

Reputation: 50701

Using a Followup Intent is probably not what you want to do, although using Contexts (which is what Followup Intents use) probably is the best route. To do this you can:

  • In your message to the user where you prompt for the user's query, set an Outgoing Context (for example, you can call it "prompt").
  • Create a Fallback Intent which accepts "prompt" as the Input Context.
  • Use the entire text from the user in your fulfillment webhook.

Upvotes: 1

Related Questions