How It Works
The main workflow starts with a chat message trigger. An AI Agent node handles the conversation, guided by a system prompt that defines its role, what tools it has access to, and how to use them. It connects to a PostgreSQL-backed chat memory node so it retains context across a session, and a PGVector database that stores the restaurant's documents, such as menus, FAQs, and policies, which the agent queries to answer customer questions accurately.