Create an event
Events are a type of message in EventCatalog that represent an immutable fact.

Adding a new event
Automatic Creation
Copy this prompt and paste it into your coding agent. Your agent can help you choose where the event should live, create the right folder structure, and add the first version of the event documentation.
Manual Creation
Events live in a /events folder. This folder can be placed:
- At the root of your catalog
- Inside a specific service or domain folder
The contents are split into two sections, frontmatter and the markdown content.
Here is an example of what a event markdown file may look like.
---
# id of your event, used for slugs and references in EventCatalog.
id: InventoryAdjusted
# Display name of the event, rendered in EventCatalog
name: Inventory Adjusted
# Version of the event
version: 0.0.4
# Short summary of your event
summary: |
Event with the intent to adjust the inventory
# Optional owners, references teams or users
owners:
- dboyne
# Optional badges, rendered to UI by EventCatalog
badges:
- content: New service
backgroundColor: blue
textColor: blue
---
## Overview
The `Inventory Adjusted` event represents intent to adjust the inventory of a given item.
<NodeGraph />
Once this file is added, the event will automatically appear across EventCatalog.
Assign producers and consumers to your event
To add producers or consumers to your event you can read the guide on adding messages to services.
You can also assign your event to one or more channels (e.g Kafka, RabbitMQ, AWS SQS, AWS SNS, etc).
Adding schemas to your event
You can add any schema format to your event, you can read the guide on adding schemas to messages.