Guides

Customer Support Agent

Give your support bot memory of past tickets, preferences, and account details.

Pattern

// On ticket open: recall customer context
const context = await memory.recall({
  userId: customerId,
  query: `support issue: ${ticketSubject}`,
  limit: 10
})

// After resolution: store outcome
await memory.store({
  userId: customerId,
  text: `Resolved billing issue: ${resolution}`,
  metadata: { ticketId, category: 'billing' }
})

Tips

  • Store ticket summaries, not full transcripts
  • Use metadata.ticketId for traceability
  • Recall with the ticket subject as the query