# Triggers

These instructions apply to the legacy Admin Console.

Triggers send events containing record data from an [Object Type](https://docs.contextual.io/legacy/components-and-data/object-types.md) to an event-processing [Agent](https://docs.contextual.io/legacy/components-and-data/agents.md) for further processing. The event payload depends on the record operation:

* **Post-insert:** sends the new record after creation.
* **Post-update:** sends both the old and new versions of the record after an update.
* **Post-delete:** sends the final content of the record after deletion.

The receiving Agent can process the event, update other records, or enrich application data.

## Send a Trigger to an Agent

1. Under **Components → Object Types**, open the Object Type and select **Triggers**.
2. In the **Post-Insert**, **Post-Update**, or **Post-Delete** section, select **+**, then **Send to Agent**.
3. Enter a trigger name and select an event-processing Agent in **Send to Agent**.
4. Leave **Enabled** on and select **Create Trigger**.
5. Create, update, or delete a test record for the selected trigger and check the Agent's output.

## Trigger Payloads

For Flow examples using the Node-RED `msg` object, see [Message Payload Content - Triggers and Actions](https://docs.contextual.io/legacy/patterns/working-with-data/message-payload-content-triggers-and-actions.md#flow-examples).
