textrawl
byJeff Green

save_conversation_context

Save conversation summary and turns for later recall

Save a conversation summary and optionally individual turns for later semantic search. Requires ENABLE_CONVERSATIONS=true (default).

Parameters

ParameterTypeRequiredDefaultDescription
summarystringREQUIRED-Conversation summary (1-10000 chars)
sessionKeystringOPTIONALauto-generatedKey to identify this conversation (1-200 chars)
titlestringOPTIONAL-Title for this conversation (max 500 chars)
recentTurnsarrayOPTIONAL-Recent turns to save (max 50)
embedTurnsbooleanOPTIONALfalseGenerate embeddings for individual turns

Each turn in recentTurns has:

  • role: user, assistant, or system
  • content: The message content (max 50000 chars)

Example Request

{
  "summary": "Discussed migrating the database from MySQL to PostgreSQL. Decided to use Supabase.",
  "sessionKey": "db-migration-2026-01",
  "title": "Database Migration Planning",
  "recentTurns": [
    { "role": "user", "content": "Should we use Supabase or PlanetScale?" },
    { "role": "assistant", "content": "Supabase is recommended for its pgvector support." }
  ]
}

Errors

ErrorCauseFix
Conversations not enabledENABLE_CONVERSATIONS is falseSet ENABLE_CONVERSATIONS=true
Database not configuredMissing Supabase credentialsSet SUPABASE_URL and SUPABASE_SERVICE_KEY

On this page