This tutorial will walk you through building a restaurant Q&A chatbot using Pathors.

Tutorial Video

Overview

In this example, we’ll create a restaurant Q&A bot, covering conversation flow, nodes, prompts, and testing agent responses—showcasing Pathors basics.

Steps

  1. Set Up Conversation Flow and Nodes

    • Design the conversation flow with nodes and edges.
    • Set a welcome message in the start node, e.g., “Hello, I am the smart assistant of Dongfeng Restaurant.”
    • Allow users to ask questions.
  2. Configure Prompts and Conditions

    • Add prompts to nodes, including restaurant info (business hours, phone, etc.).
    • Route the conversation to different nodes based on user questions, customizing responses.
    • You can pre-configure tools or knowledge base (covered in later tutorials).
  3. Design the End Node

    • Set a closing message for the end of the conversation, such as “Thank you” or an invitation to fill out a survey.
  4. Test Agent Responses

    • Ask questions like “What are your restaurant’s business hours?” to verify the agent responds correctly based on the prompts.
  5. Advanced Settings

    • Use Global Prompts to adjust tone, timezone, etc.
    • You can enable system prompt mode to combine all node prompts into a single system prompt, suitable for scenarios requiring full context.