Skip to content

Building a Rule Based Weather Bot

Amitha R edited this page Oct 13, 2018 · 11 revisions

Rule Based Weather Bot

How do Rule Based Bots work?

  • Human Input -> Match input to a pattern/rule -> Extract intent and data -> Process and create a response -> Human;
    • Intent - Subject of the conversation.
    • Entities - Actionable data components that the bot has to extract.
    • E.g - Will it rain in New York tomorrow? , Will it rain tomorrow in New York?
      • INTENT - Weather Forecast.
      • ENTITIES - rain, New York, tomorrow.
      • rain - weather | New York - location | tomorrow - time.
      • City :: New York | Weather :: Rain | Time :: Tomorrow.

Input (Intent / Entities) -> Intent Processor ---> Weather ---> [Weather API] ---> Weather --> Response Parse --> Response (Yes, there will be rain in New York tomorrow.)