Loading…
Topic
Conversation Memory
7 posts about Conversation Memory. Every summary links to the original.
- 7 posts
- 1 company
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
How To Import Data From Your CRM Or Another External Source Into Conversation Memory
Callers often have to repeat account details each time they contact a business. Twilio Conversation Memory addresses this by storing customer profiles, traits (e.g., VIPStatus, PreferredLanguage), and observations (e.g., ‘Order #9401 delayed’) for use by voice agents, chatbots, and IVRs. This tutorial presents two import paths: uploading a CSV directly in the console with AI-assisted mapping of columns to custom traits of types string, integer, boolean, or array, or building a .NET 9 Web API for programmatic sync. The API solution reads a mock JSON file containing four customer records, maps fields like phone and email to the Profiles API via CrmSyncService, and exposes a POST /sync/{phone} endpoint that first checks for existing profiles to avoid duplicates. After successful syncing, customer data appears in the Conversation Memory Store and is accessible on incoming interactions without extra database calls.
How to share customer context across chat, SMS, and voice
Customers often repeat their issue when switching channels because agents lack context; Twilio’s research found 76% of consumers said agents have no context, and 48% of business leaders named connecting data across channels as the biggest obstacle. Twilio’s solution uses Conversation Memory to tie each channel identifier to one profile, normalizing phone numbers, and Conversation Orchestrator groups conversations by that profile. Agent Connect routes all channels through one handler, and memory mode must be set to always or once to load context; ConversationRelay handles voice with under 0.5 seconds latency. For chat-to-phone handoff, save key details as observations through the Memory API and use extraction on INACTIVE for quick context. Human agents in Flex see the full picture through Unified Profiles and Agent Copilot, with escalation sending conversation and profile IDs.
How to build an AI agent that remembers returning customers
AI agents that fail to recognize returning customers force them to repeat information, with 74% of consumers reporting repetition and 71% willing to abandon conversations early. Twilio’s approach uses three capabilities: identity resolution to match profiles across channels, recall to pull observations and summaries from Conversation Memory, and write-back to save new facts via the Memory API. Conversation Memory stores structured traits, extracted observations from conversations, and short conversation summaries, with the Recall API returning up to 20 observations and 5 summaries per profile. Agent Connect loads relevant context before the agent replies, running in Orchestrator mode with memory modes of always or once, and it uses ConversationRelay for voice calls. New facts are saved mid-conversation by agent tools calling the Memory API directly because automatic extraction only runs after a conversation closes, and memory carries across channels and human handoffs through Twilio Flex.
How to audit what your AI agent knows about a customer
To audit what an AI agent knows about a customer, three questions must be answered: what the agent stored, where facts came from, and what it used for each answer. Twilio Conversation Memory stores customer knowledge as traits, observations, and conversation summaries, each with provenance including source, conversation IDs, and revision history. Agent Connect passes retrieved memory to the developer’s code on every message, enabling logging of which memories were used per response, including relevance scores. The guide also covers correcting or deleting incorrect memories and building a persistent audit trail by exporting Memory events via Twilio Event Streams, tied together with conversation IDs. This approach gives human agents and compliance teams the ability to trace, explain, and fix agent behavior, with Agent Copilot displaying knowledge sources.
How to build a proactive agent for AI outbound calling
Most AI agents are reactive, waiting for customers to initiate contact, which turns service issues into damage control. A proactive AI agent instead starts conversations based on system events, such as a delayed shipment, reaching out before the customer discovers the problem. The post outlines six ordered components: consent and contact rules, CRM event triggers, context loading, channel selection, scheduling, and human handoff. It details how Twilio Segment detects events, Agent Connect starts conversations, and Conversation Memory’s Recall endpoint provides customer context. The author emphasizes that consent must precede any trigger and that context must load before the first message, with a pre-launch checklist covering opt-outs, frequency limits, and agent identification.
How to handle token limits in long AI support conversations
Long customer support conversations often exceed an LLM’s context window, causing the oldest turns—which contain the original problem description—to be dropped first. Four strategies exist to manage context: sliding window, rolling summaries, retrieval from memory, and structured state. Twilio recommends combining structured state for known fields, a sliding window for the live exchange, and retrieval for prior conversations. Twilio’s platform splits context management: live turn history stays in the agent’s code, while Conversation Memory stores compressed observations and summaries from past conversations. The Recall endpoint returns up to 100 observations and 100 summaries per call, each capped at 4,096 characters, using semantic and lexical search. On voice calls, developers choose how often Recall runs to balance context freshness against response latency.
How to Augment Voice Calls with Twilio Intelligence
This tutorial shows PHP developers how to augment a Twilio voice AI agent with Conversation Intelligence, Conversation Orchestrator, and Conversation Memory. The goal is to retrieve a short summary of each customer call, analyze the caller’s sentiment, and check whether the agent followed set guidelines. The information is persisted to a SQLite database for later use. The tutorial builds on a previous voice agent tutorial and requires a Twilio account, a voice-capable phone number, and ngrok to expose the local server. It walks through setting up Conversation Orchestrator, Conversation Intelligence, and the application database, then testing the flow with example questions. The post also mentions the Conversations API (V2) for retrieving call summaries and sentiment analysis.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.