Legacy Dev Forum Posts

 View Only

Sign Up

Dialogflow - Context input utilization

  • 1.  Dialogflow - Context input utilization

    Posted 06-05-2025 19:11

    FlorianM | 2022-02-08 18:05:12 UTC | #1

    Hello,

    I would like to filter the available intents based on a context. For that I would like to use the context-input (good solution?).

    Example: if

    • the caller asks "I would like to order a product" (intent "Order product"),
    • The flow plays the prompt "Which product do you want?",
    • the customer says "Socks".
    • The flow plays the prompt "What is your shoe size?" (intent "Sock command").

    I would like the "Socks order" intent to be choice only if the customer has gone through the "Product order" intent.

    I want all prompts are in GenesysCloud, so i put all my intents at "Set this intent as end of conversation".

    Can you help me ?

    Regards,


    Anton_Vroon | 2022-02-08 19:36:15 UTC | #2

    You could do something like this

    I would have the slots in the the first Intent's utterances so a customer could say for example I would like to order large socks.

    And that way it wont ask for those slots since they are already filled Or if the customer says I want to order socks then it will just ask the size etc

    With Dynamic Slot types on the way it will be fairly easy to load a list of products for the slot values.


    FlorianM | 2022-02-08 22:35:52 UTC | #3

    Sorry i'm not sure to understand. Perhaps i'm not clear.

    I want to create a Dialogflow callbot with dependencies between my intents. My intent "Intent 2A" should only be active if the caller has gone through intent "Intent 2" before.

    If I had made my callbot only in Dialogflow (without Genesys), I would have:

    • In "Intent 2": put in context-output "Context 2A"
    • In "Intent 2A": put in context-input "Context 2A"

    So my "Intent 2A" can't be offered to the caller from the start.

    So my question is: can I use Architect to populate "Context 2A" in context of my Dialogflow call?

    while hoping to have been clearly.


    Anton_Vroon | 2022-02-08 23:40:41 UTC | #4

    Ah right sorry

    Genesys bot is DialogEngine Google is DialogFlow, I get them mixed up. So my example is how you would do it in the Genesys DialogEngine.

    Hopefully someone else has some experience with DialogFlow.


    system | 2022-03-11 23:41:01 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 13511