Ask Questions using context from previous input

Hi,

My requirement is to structure and ask customized/personalized questions to the user based on the inputs given by the user earlier. Or, using all the previous inputs as keywords, formulate questions for more information. That way, once a user enters an utterance, it automatically detects all the entities and asks for remaining entities through personalized questions.

For ex: Please share the passenger details for booking the flight from Paris to London on next Friday.

Please tell what is the best way to solve this with the help of NLP engines in the Kore Bot.

Hi Sushma,

Could you please try the below steps and confirm if that works for your requirement.

For Intent and Entity Configuration:

  • Define an intent for “Booking Flight” with appropriate training phrases.
  • Configure entities like “origin”, “destination”, “date”, and “passenger details”.

For Dialog Flow Design:

  • Design a dialog flow that:
    • Starts with the “Booking Flight” intent.
    • Uses Natural Language Understanding (NLU) to extract entities.
    • Checks for missing entities based on the context.
    • Generates and prompts the user with personalized questions.
    • Updates the context with user responses.

For the scripting part with Kore.ai Bots:**

  • Utilize Kore.ai’s scripting capabilities (like BotKit or JavaScript) to:
    • Access extracted entities and context from the NLU output.
    • Construct personalized questions based on missing entities.
    • Use Kore.ai’s user interface elements to display these questions to the user.

Hope this helps.

Thank you,
Srujan Madderla
Kore.ai Community Team