ai bot, ai chat, ai chatbot, aiconversation, best chatbot, chatbot, chatbot ai, chatbot app, chatbot online, chatbot website, chatbots, conversation with ai, creating chatbots, dialogflow, robot chat, serverless-functions
Making chatbots reply smarter with context using Dialogflow Fulfillment | by Rensen Ho | Sep, 2021
1. Instead of one intent with the required slot filling parameters, create that intent followed by one intent for each parameter. (See purple boxes above)2. In those intents with a single slot filling parameter, set it optional.3. Put all entities extracted from any intent into the conversation context programmatically. (See the blue box above)4. Make a functional response for a group of related intents (see the orange box above), so that you’re making a chatbot to reply based on the user’s intent and information (either mentioned or referred from context), instead of intent without information.Let’s take a closer look at the code.Start by creating a map of intents. Let the agent (a webhook client) use the intent map to handle incoming messages.Remember to create those intents in Dialogflo...
