Skip to content

A context variable stays empty

Last checked against the product on 27 October 2026.

The agent asks again for something the customer already gave, or a tool already returned. Open the conversation: its side panel lists the context variables it holds.

How to tell: a variable that comes from a tool has a path such as $.booking_ref. Fix: write the path without $.: booking_ref, booking.ref, or items[0].id for the first item.

How to tell: the path is right for your system’s full response, but the tool’s manifest doesn’t keep that field. Fix: a path reads the result the agent sees, not the full response. Add the field to the tool’s projection.

How to tell: the variable’s Tool doesn’t exactly match a tool in Agent → Tools & APIs. Fix: use the tool’s exact name, such as kaya_get_order.

How to tell: Lasts for is “one turn”. The value is forgotten as soon as the reply is sent. Fix: choose “the conversation” for anything the customer will refer back to.

How to tell: a variable from the conversation has a Pattern, and what the customer typed doesn’t match it. Fix: loosen the pattern, or make the description say what the value looks like. A pattern only applies to text variables.

How to tell: the customer came back after the idle timeout, and a new conversation started. Fix: expected. Variables last one conversation at most. See WhatsApp.

Still stuck? Write to support@tendus.ai with the link to the conversation.