When Ava uses a tool, include a clickable link in the response to view the full trace.
After tool execution, Ava sends a message summarizing the result. We need to append a trace link so users can see full details.
1. Tool executes, returns result 2. Result formatted as message text 3. Message sent to Telegram
1. Tool executes, returns result + trace ID (from t-272.4) 2. Result formatted as message text 3. Append trace link to message 4. Message sent to Telegram
Use Telegram MarkdownV2 link syntax: [view trace](https://ava.bensima.com/trace/abc123)
Example message: "I ran the Python code. Output: 42
[view trace](https://ava.bensima.com/trace/trace-550e8400)"
Add environment variable: AVA_WEB_URL
Where tool results are formatted into response messages.
Look for:
Instead of text link, could use Telegram inline keyboard:
InlineKeyboardButton { text = "View Trace" , url = Just "https://ava.bensima.com/trace/abc123" }
This shows a button below the message. More prominent but may be too noisy for every tool call.
Start with text link, can upgrade later.