Explore advanced techniques for leveraging event-driven architecture in AI Builder applications
message.created
, user.login
)Emitting Events
Listening for Events
Accessing Event History
Analyzing Event Patterns
Introduction to Event Mapping
payload
. To ensure consistent and efficient aggregation in both Elasticsearch and OpenSearch, it’s essential to explicitly define the mapping for fields used in the payload.Without proper mapping, you may encounter issues such as:Benefits of Explicit Mapping
Implementing Event Mapping
usage
event type, specifying that fields like usage.total_tokens
and usage.cost
should be treated as numeric values with specific formats.Advanced Usage Analytics Example
User Activity Tracking
AI Model Performance Tracking
Multi-Step Workflows