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

Custom Event

Previous[deprecated] Tool MessageNextMetadata

Last updated 10 months ago

Was this helpful?

Custom events are used to track other interactions in your LLM application, such as conversions or link clicks.

Example:

{
   "type": "event"
   "name": "Checkout",
   "metadata": {
     "payment_method": "card",
   },
   "event_timestamp": "2020-02-20T20:20:23Z"
}
Field Name
Type
Description
Required

type

String

Custom Event Type

name

String

Name of custom event, prefer to give all events of the same class the same identifiable "name" field.

metadata

A collection of arbitrary key-value pairs.

event_timestamp

Timestamp

(ISO 8601)

The timestamp of when this message was sent or received.

Metadata