# Add an AI Action

> Hand a step to the AI to read, decide and write, using the portal's own tools, code and the web pages you allow.

URL: https://rei-vantage.com/docs/automations/add-an-ai-action
For: admin
Updated: 2026-11-30

Most steps do one fixed thing: add a task, change a status. An **AI Action** is a step where the portal's AI follows written instructions instead: it reads, decides and acts, using the portal's own tools as an automation would. Use one for judgement: reading a conversation and deciding whether the seller is ready, writing a summary, choosing what to do next.

AI Actions run on your portal's AI: REI Vantage AI, included and paid from the wallet, or your own AI provider if an admin connected one on **Integrations**.

## Add one

1. Click **New Automation**, or **Edit With AI** on an automation you have.
2. Say what the AI should do, such as "When a seller texts in, have AI read the conversation, and if they want to sell within 30 days, add a call task for today for the lead manager. Never text them."
3. The AI drafts the step's instructions for you. If the goal, who it may reach or its tone isn't clear, it asks first.
4. Check the draft. On the card, open **Custom instructions** to read them. On the right, the step is a purple block, **AI Action**, with a soft violet glow.
5. Create the automation, then switch it on.

*[Figure: An AI Action's purple block on the flow, with icons for running code and reaching a website, beside its settings: the skill it uses, its instructions, its limits and the host it may reach]*

Click the block on the automation's page to see its settings:

- **Skill**: a custom skill it follows instead of its own instructions, or **Finds one that fits, if any**.
- **Instructions**: what it does, in steps, with what done looks like and what it must never do.
- **Limits**: how far it may go, **Up to 25 tool calls, 6 min** unless you ask for more (up to 200 tool calls and 60 minutes).
- **Network** and **Credentials**: the websites its code and page reads may reach, and the keys sent there ([below](#code-and-web-pages)).
- **Can contact people**: **Yes** when it may text, email or enrol people.

## What it may do

The AI Action works through the portal's tools, as a tool step does: finding a lead, adding a task or a note, changing a status, enrolling in a sequence. It finds the ones it needs as it goes.

What it reads, such as a seller's text or a note, is someone else's words, so it is kept on a short leash:

- It never uses a tool that deletes, one only an admin may use (apart from reading lists such as statuses and custom fields), or one that would normally ask you to confirm.
- It only texts, emails or enrols people when the step allows it. Ask for it ("it may text them back"), and the block is marked **Contacts People** in red, and switching the automation on lists it.
- Its instructions come first: anything it reads is treated as data, never as instructions.

Each change it makes shows on the record, credited to the automation.

## Code and web pages

An AI Action can also run Python code in a sandbox of its own, to work out figures, read or write files on the record, or reshape data. The block shows a terminal icon (**Can run code**). Files it writes are saved on the run's record.

To read a website, or let its code reach one, name the site: "look the parcel up on services.arcgis.com". The block then shows a globe (**Reaches services.arcgis.com**). It can only reach the sites the step lists. If the site needs an API key, save it as a secret first and say which one to send ([Keep an API key as a secret](https://rei-vantage.com/docs/automations/keep-an-api-key-as-a-secret)): the key goes with each request without the AI or its code ever seeing it.

A step that reaches a website sends portal data outside the portal, so switching the automation on lists it too.

## Follow a skill

Skills hold the house way of doing a job. An admin writes custom skills on the **AI** page. An AI Action looks for a skill that fits before it starts, or you can ask for one by name: "follow the Hot lead triage skill". If that skill is archived later, the step fails until it's changed.

## What it did

On the automation's **Runs** tab, open a run. An AI Action's step shows its answer, the tools it used and any it was refused ([Review an automation](https://rei-vantage.com/docs/automations/review-an-automation)). Its answer can also be used by the next steps, such as a note that carries it.

If it reaches a limit, the AI fails, or the provider changes mid-step, the step fails and says why. If the wallet is empty, the step fails with **The wallet is empty**; an admin can add funds on the **Wallet** page ([Add funds to the wallet](https://rei-vantage.com/docs/property-data/add-funds-to-the-wallet)).
