Aria Context Debugger
Use when Aria gives wrong or empty answers.
Trace the full data chain:
- •What does the frontend send to /api/aria/chat? (message, channel, context object with threadPhone?)
- •Does the /chat endpoint (routes/aria.js) build a ThreadContextPack or BusinessContextPack?
- •What data is in that context pack? Read the actual queries in lib/services/aria/AriaThreadContext.js.
- •If Aria uses a tool call instead, which tool? Does it have .catch() on each query?
- •What does the tool return? Is it { success: false }?
- •What does Aria say to the user and why?
Key files:
- •routes/aria.js — /chat endpoint, context injection
- •lib/services/aria/AriaThreadContext.js — buildThreadContextPack, buildBusinessContextPack
- •lib/services/aria/AriaCore.js — processMessage, tool execution
- •lib/services/aria/AriaActionsV3.js — tool implementations (get_operations_overview, etc.)