# Define an event specification
> Create event specifications in Snowplow Console, choose their event and entity data structures, and add triggers and property instructions for developers.
> Source: https://docs.snowplow.io/docs/event-studio/tracking-plans/event-specifications/
> Documentation index: https://docs.snowplow.io/llms.txt

An event specification is a complete definition of one business event inside a tracking plan. It defines what data should be tracked and when the event occurs, along with metadata about the event such as ownership. See [tracking plan elements](/docs/event-studio/tracking-plans/) for the fields an event specification holds.

Event specifications act as data contracts between teams. When you create an event specification, you define exactly what data your applications should send, what your data warehouse will receive, and what your downstream consumers can rely on.

Once an event specification is ready, you can [publish it](/docs/event-studio/test-and-publish/) to make it active in the pipeline. Publishing enables [event specification inference](/docs/event-studio/tracking-plans/event-specification-inference/) and [event specification validation](/docs/event-studio/tracking-plans/event-specification-validation/).

## Before you begin

Before you define an event specification, you need:

- A [tracking plan](/docs/event-studio/tracking-plans/create-and-manage/) to hold the event specification. You can only make event specifications within tracking plans, and each event specification belongs to a single tracking plan.
- The event and entity [data structures](/docs/event-studio/data-structures/create/) that the event specification uses. Create any custom data structures first.
- The tracking plan permissions described in [managing permissions](/docs/account-management/managing-permissions/#tracking-plans).

## Create an event specification

You can create an event specification from a tracking plan or from the Event Catalog, then open it to add details.

### Create an event specification from a tracking plan

To create an event specification from a tracking plan:

1. Select a tracking plan.
2. Click **Create event**.
3. In the dialog, enter a name for your event specification and click **Save and continue**.

The tracking plan page shows your new event specification.

![E-Commerce Web User Interactions Data tracking plan overview with an arrow highlighting the Create event button at the bottom of the event specifications list](/assets/images/create-event-specification-1fb10126179bd86b5036a979b2d44b39.png)

### Create an event specification from the Event Catalog

From the [Event Catalog](/docs/event-studio/event-catalog/), you can create new event specifications without first navigating to a tracking plan.

To create an event specification from the Event Catalog:

1. Click **Create event specification**.
2. Enter a name that describes the event.
3. Optionally add a description.
4. Select the tracking plan this event specification belongs to.
5. Select the source applications where this event is tracked.
6. Click **Confirm**.

![\&quot;Create event specification\&quot; dialog with name \&quot;Add to cart\&quot; entered, tracking plan set to E-commerce Web, and source application set to website](/assets/images/create-event-specification-from-catalog-7ba523f45dd227ae96a8434ee0d0ee4d.png)

After creation, you can add event and entity data structures, triggers, and property instructions.

> **Tip:** Use descriptive names that reflect the business action being tracked. For example, "Add to cart" is clearer than "cart\_event\_1".

## Open an event specification

To add more information to an event specification, or modify an existing one:

1. Navigate to the appropriate tracking plan.
2. Select the event specification.

This opens an overview of the event specification, containing the details that have been added to date. The event specification page has three tabs:

- **Details**: the sections described on this page
- **Tracking summary**: event volumes per specification version and application ID, see [monitor tracking plan data quality in Console](/docs/event-studio/tracking-plans/data-quality/#track-specification-versions-and-application-ids)
- **History**: the list of versions of the specification, with the changes between any two versions

The **Details** tab starts with the event information section. It holds the meta-information for your event specification: the event name, description, and the applications in which this event is tracked.

![Product Added to Cart event specification showing event description, source application, the cart\_action 1-0-0 data structure with a type property required to be \&quot;add\&quot;, user and product entity data structures, and an Add to Cart button trigger](/assets/images/event-specification-overview-f3c4beeb305a7329dbc7ed8376a57f0b.png)

## Choose the event and entity data structures

Each event specification has an event [data structure](/docs/event-studio/data-structures/), plus optional entity data structures. You can select which version of each data structure to use.

### Event data structure

The event data structure is the one this event will validate against as it is processed by your pipeline. To set it, click **Add existing data structure** on the **Event data structure** panel and select a data structure.

You can choose from two types of data structures:

- **Standard**: provided by the Snowplow tracker by default
- **Custom**: provided by your organization

![\&quot;Event data structure\&quot; selection dialog showing the Standard tab with four options: link\_click (1-0-1), page\_ping (1-0-0), page\_view (1-0-0), and screen\_view (1-0-0), each with a \&quot;View properties\&quot; link](/assets/images/event-data-structure-00f3d61c035b8d6e2261531677f57083.png)

### Entity data structures

In the **Entity data structures** section, you define the [entities](/docs/fundamentals/entities/) that should be associated with the event when it is triggered. Click **Add existing data structure** and select the entities.

To help you make an informed selection, you can view a detailed breakdown of the properties of each entity, by version.

![\&quot;Entity data structures\&quot; selection dialog showing the Custom tab with six entities listed, the product entity selected, and a \&quot;Select entities\&quot; button](/assets/images/entity-data-structures-a2728bea5606b9e3aa9eb473ab676c56.png)

After you select an entity, the next step of the dialog lets you define the expected cardinality of the entity on the event specification: how many instances of the entity to expect.

## Add triggers and property instructions

Triggers and property instructions tell developers when to track the event and how to populate it.

### Add event triggers

Event triggers define the locations and circumstances under which this event is triggered.

To create your first trigger, select the **Add trigger** button. A dialog appears, where you can upload an image, add notes, specify which applications the trigger applies to, and provide additional context such as the URL of the page on which this trigger applies.

![\&quot;Event trigger\&quot; dialog with fields for uploading a screenshot, adding trigger notes, specifying which applications the trigger applies to, and providing a URL for the page where the trigger fires](/assets/images/event-triggers-f58df8f12d6e3816cbe742f2b7b523c8.png)

You can edit or delete an existing trigger by clicking the buttons beside each entry in the triggers list.

### Add property instructions

Property instructions specify how each property of a selected event or entity data structure should be populated.

The dialog lists the properties of the selected data structure, with the ability to provide the exact value or values, or a description of how to populate each property when the event is triggered.

To configure detailed instructions for a property:

1. Click **Add instruction** or **Edit** beside the property.
2. Select the type of instruction you want to add or edit, and fill in the required input fields.
3. Click **Save and update instruction** to return to the properties list.

> **Note:** Instructions for required properties are added by default and can be edited, but they can't be deleted.

![\&quot;Add implementation instructions\&quot; dialog showing the link\_click 1-0-1 schema properties (elementId, elementClasses, elementTarget, targetUrl, elementContent), with targetUrl marked as required and an Edit action](/assets/images/implementation-instructions-51f52ed6ae5773cb275f0af83a076447.png)

Implementation instructions, entity cardinality rules, and trigger details are available to the developers implementing the tracking through the Snowtype [instructions feature](/docs/event-studio/implement-tracking/generate-tracking-code/#markdown-instructions).
