🎯 Mastering Bot Triggers: Exact Match vs. String Match Keywords

📚 This is a quick tutorial where I’ll break down the difference between string match and exact keyword match for bot triggers.

💡 PRO TIP: Click here to hire an expert to guide you in the step by step. Book a call now to learn all the tips and tricks for training your AI, or let us handle it all for you instead.

This guide will help you understand the difference between Exact Match and String Match keywords, enabling you to optimize your bot’s responses and enhance user interactions. By using these keyword types effectively, you can make your chatbot more precise and responsive to user queries.

What are Bot Triggers?

Bot triggers activate automatic responses based on user inputs. You have two types of triggers:

  • Exact Keyword Match: This triggers a response only when the exact words you specified are used by the user.
  • String Match: This offers more flexibility; it triggers if any part of the user’s message includes the specified string.

Let’s go through the steps to set them up so you can see the difference more clearly.

Setting Up Your Bot in BotCommerce

Log in to your BotCommerce account. Navigate to the “Bot Manager” and click on “Create,” which will redirect you to the visual drag-and-drop flow builder.

Setting Up the Exact Keyword Match

Double-click on the Start Bot Flow Component. In the sidebar that will open, select the “Exact Keyword Match” option. Enter keywords such as “hello,” “hi,” and “start.” Provide a title for the chatbot flow and save the changes.

Provide a text reply for the keywords and save the changes.

Save the bot configuration. Text the bot with the exact keywords you added (e.g., “hello”). The bot should reply correctly.

Text the bot with a slight variation (e.g., “yellow”). The bot should send a “no match” reply since it doesn’t match the trigger words.

Setting Up the String Match

In the sidebar flow, select the “String Match” option.

Enter trigger words such as “greet” and “assist.” You can also add individual letters or partial words. String match works by triggering the bot if any part of the user’s message contains the specified string.

Text the bot with messages containing parts of the keywords (e.g., “hello” for “hl” or “assist” for “assistance”). The bot should reply correctly.

Text the bot with the exact keywords. The bot should still trigger correctly.

For any questions or further assistance, please feel free to contact our support team. We’re here to help you optimize your bot’s performance and ensure a seamless user experience.