Skip to main content
Contexts are key-value pairs that provide persistent background information to agents. Use contexts to inject company information, user preferences, or any data that should be available across all conversations.

Quick Start


Creating Contexts

studio.create_context()

Example


Getting Contexts

studio.get_context()

Retrieve a context by ID:

studio.list_contexts()

List all contexts:

Updating Contexts

context.update()

Update the value of a context:

studio.contexts.update()

Update via module:

Deleting Contexts

context.delete()

studio.contexts.delete()

Delete via module:

Context Properties


Adding Contexts to Agents

At Creation

After Creation

Multiple Contexts


Use Cases

Company Knowledge Base

User Personalization

Dynamic Pricing

Regulatory Compliance


Best Practices

Structured Content

Keep Values Focused

Regular Updates

Naming Conventions