Context.ai
  • What is Context.ai?
  • List of Trackable Metrics
  • Product Analytics
    • Overview
    • Topic Categorisation
      • LLM Topics
    • User Engagement Tracking
    • Foreign Language Support
    • PII Filtering
    • Custom Metadata Filtering
    • Backfill Analytics Data
    • Custom Events
    • API Ingestion Methods
      • Log Conversation
      • [deprecated] Upsert Conversation
      • Thread Conversation
      • Patch Thread Message
      • API Resources
        • Chat Message
        • [deprecated] Tool Message
        • Custom Event
        • Metadata
        • Conversation
        • Thread
    • Embedded API
      • Multi-Tenancy
      • Conversations
        • Series Data
  • Integrations
    • Getting Started
    • Python SDK
    • Javascript SDK
    • LangChain Plugin
    • Haystack Plugin
    • Authorization
Powered by GitBook
On this page

Was this helpful?

  1. Product Analytics
  2. API Ingestion Methods
  3. API Resources

Metadata

PreviousCustom EventNextConversation

Last updated 1 year ago

Was this helpful?

The metadata object is an arbitrary set of string key-value pairs.

You can use this metadata object to attach custom data to a conversation. These fields can then as filters or slice dimensions within Context.ai. There is a limit of 20 metadata keys per conversation and 40 character limit for each metadata key and value.

Example

{
   "model": "gpt-4-32k",
   "user_id": "4729045",
   "session_id": "3876-6592",
}
Field Name
Type
Description
Required

model

String

Model and context window size (if relevant). See .

user_id

String

Unique user identifier. See .

*

String

Arbitrary key-value pairs of metadata attached to a conversation.

Cost Estimation
User Engagement Monitoring