Memory enables your AI assistant to recall essential details from past conversations. Instead of starting each phone call or text exchange from scratch, your AI assistant naturally continues previous discussions. In this tutorial, you will learn how to:Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
- Specify which conversations your AI Assistant has memory access to
- Configure this dynamically at the start of every conversation
Telnyx Assistants natively support our Voice and Messaging APIs, meaning the same assistant can seamlessly remember conversations across channels.
Identifying the conversations to include
There is no one-size-fits-all answer for which previous conversations an AI Assistant should remember during a specific conversation. You may want an AI Assistant to have memory access to:- Every conversation it had with any user
- Every conversation it had with this specific user
- Every conversation it had with users in a specific group in the past 10 days
- Or something else entirely…
Configuring memory with the Dynamic Variables Webhook
If thedynamic_variables_webhook_url is set for the assistant, we will send the following payload at the start of the conversation.
For inbound phone calls to an assistant, the
telnyx_end_user_target_verified field will be set to true if the call has Full (A) STIR/SHAKEN attestation and Telnyx was able to verify the authenticity of the PASSporT token.memory field provides your AI assistant with memory access to the last 5 conversations with the current user’s phone number.
You can read more about the optional dynamic_variables field in our tutorial on Dynamic Variables.


Custom Metadata
You may want to create your own memory access system based on custom metadata for conversations. To do this, you can add metadata to conversations in the dynamic variable webhook response:memory field using the following syntax metadata->your_custom_metadata=eq.your_custom_value.