> For the complete documentation index, see [llms.txt](https://docs.ilert.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ilert.com/integrations/actions/context.md).

# Context

Reference for the variables available in action placeholders and conditions.

{% hint style="info" %}
These pages describe the variables you can use in `{{ }}` placeholders and conditions when you customize an action's YAML definition. Start with [Actions → Custom behavior](https://docs.ilert.com/integrations/actions.md#custom-behavior-advanced-topic) for how the definition works.
{% endhint %}

Which variables exist depends on where the placeholder or condition is. A variable that does not exist, or a field without a value, is left out rather than set to null, so test it with `!= nil`.

**In `steps`**

| Variable                                                                      | Contains                                                                                                                                                                                | Also in templated settings |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| [signal](https://docs.ilert.com/integrations/actions/context/signal.md)       | The event that started the run                                                                                                                                                          | Yes                        |
| [execution](https://docs.ilert.com/integrations/actions/context/execution.md) | The current run                                                                                                                                                                         | Yes                        |
| [actor](https://docs.ilert.com/integrations/actions/context/actor.md)         | Who made the change                                                                                                                                                                     | Yes                        |
| [entity](https://docs.ilert.com/integrations/actions/context/entity.md)       | The alert or incident: [alert](https://docs.ilert.com/integrations/actions/context/entity-alert.md), [incident](https://docs.ilert.com/integrations/actions/context/entity-incident.md) | Yes                        |
| [config](https://docs.ilert.com/integrations/actions/context/config.md)       | The action's settings                                                                                                                                                                   | Yes                        |
| [tenant](https://docs.ilert.com/integrations/actions/context/tenant.md)       | Your account                                                                                                                                                                            | Yes                        |
| [@ilert](https://docs.ilert.com/integrations/actions/context/ilert.md)        | ilert objects looked up by id                                                                                                                                                           | Yes                        |
| [map](https://docs.ilert.com/integrations/actions/context/map.md)             | Field-mapping results published by name                                                                                                                                                 | Yes                        |
| [vendor](https://docs.ilert.com/integrations/actions/context/vendor.md)       | Constants ilert holds for the target system                                                                                                                                             | No                         |
| [twin](https://docs.ilert.com/integrations/actions/context/twin.md)           | The object this action created in the target system                                                                                                                                     | No                         |
| [last](https://docs.ilert.com/integrations/actions/context/last.md)           | The most recent response                                                                                                                                                                | No                         |
| [responses](https://docs.ilert.com/integrations/actions/context/responses.md) | Earlier responses in the current step                                                                                                                                                   | No                         |
| [steps](https://docs.ilert.com/integrations/actions/context/steps.md)         | Steps of this run that have finished                                                                                                                                                    | No                         |

Templated settings are settings whose value is itself a template, such as a webhook body.

**In `inbound`**

| Variable                                                                                 | Contains                                    |
| ---------------------------------------------------------------------------------------- | ------------------------------------------- |
| [payload](https://docs.ilert.com/integrations/actions/context/payload.md)                | The callback body the target system sent    |
| [config](https://docs.ilert.com/integrations/actions/context/config.md)                  | The action's settings                       |
| [vendor](https://docs.ilert.com/integrations/actions/context/vendor.md)                  | Constants ilert holds for the target system |
| [map](https://docs.ilert.com/integrations/actions/context/map.md)                        | Value maps inverted for reading callbacks   |
| [last and hydrate reads](https://docs.ilert.com/integrations/actions/context/hydrate.md) | Responses of the `hydrate` reads            |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ilert.com/integrations/actions/context.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
