# Use AirBuild with Shortcuts and Siri

> Send a message or files to an Agent, or open your chat with it, from Siri and the Shortcuts app on iPhone, iPad and Mac.

Source: https://air.build/docs/connect/shortcuts-and-siri/

AirBuild gives Siri and the Shortcuts app three actions: **Send Message**, **Send Files** and **Open Chat**. Each one works with your own chat with one Agent. They're on iPhone, iPad and Mac.

The actions reach only your chat with one Agent. Project chats, groups and chats with people aren't offered. To send to those, use the app, or on iPhone and iPad the share sheet (see [Send things to AirBuild from other apps](https://air.build/docs/connect/share-into-airbuild/)).

## Before you start

- Sign in to AirBuild on the device.
- Answer **Before You Start** in the app with **Agree and Continue**. Until you do, **Send Message** and **Send Files** stop with "Open AirBuild and allow data sharing first." **Open Chat** still opens the app, and the app asks before it shows the chat.
- On iPhone and iPad, the device has to be unlocked. On a locked device, Siri asks you to unlock it first.

## The actions

| Action | What it does | Opens AirBuild |
| --- | --- | --- |
| **Send Message** | "Sends a message to one of your agents without opening AirBuild. To send photos from an earlier action, use Send Files." Files can go along. | No |
| **Send Files** | "Sends photos, videos or other files to one of your agents without opening AirBuild." A line of text can go along. | No |
| **Open Chat** | "Opens your chat with an agent in AirBuild." It sends nothing. | Yes |

**Send Message** and **Send Files** give back the Agent the message went to. Put **Open Chat** after either one and it opens that chat, so you can read the reply.

### Send Message

In a shortcut it reads "Send _Message_ to _Agent_". **Files** is under **Show More**.

| Parameter | What it is |
| --- | --- |
| **Message** | The text. It takes the previous action's result, so **Dictate Text** followed by **Send Message** needs no wiring. "If it’s empty and nothing is attached, you’re asked when the shortcut runs." |
| **Agent** | "The agent that receives it." If it isn't set, you're asked "Which agent?" |
| **Files** | "Files to attach to the message." It doesn't take the previous action's result. To send photos from an earlier action, use **Send Files**. |

### Send Files

In a shortcut it reads "Send _Files_ to _Agent_". **Message** is under **Show More**.

| Parameter | What it is |
| --- | --- |
| **Files** | "Photos, videos or other files to send." It takes the previous action's result: for example **Select Photos**, **Take Screenshot**, what a shortcut receives from the share sheet, or a Quick Action's input on the Mac. Folders and packages can't be sent; compress them first. |
| **Agent** | "The agent that receives it." If it isn't set, you're asked "Which agent?" |
| **Message** | "Optional text sent with the files." |

**Send Files** never asks for text. With no files and no message, it stops with "Add a message or a file to send."

Each file can be up to 1 GB. A video over 100 MB is compressed before it's sent, as it is in the chat.

### Open Chat

In a shortcut it reads "Open chat with _Agent_".

| Parameter | What it is |
| --- | --- |
| **Agent** | Whose chat to open. It takes the previous action's result, so it follows **Send Message** or **Send Files** with no wiring. If it isn't set, you're asked "Which agent?" |

AirBuild opens on your chat with that Agent and moves to the Agent's Team first if it needs to. This works when AirBuild wasn't running too. On the Mac, the action brings AirBuild's window back even if you had closed it.

## Choose an Agent

The **Agent** list has every Agent you can write to, in every Team you're in. The Team AirBuild showed last comes first. In each Team, your pinned Agents come first, then the chats with the newest messages. When you're in more than one Team, each Agent shows its Team's name under it.

When you type or say a name, an Agent whose whole name matches is picked. If none matches exactly, you get every Agent whose name contains what you typed. When you're in more than one Team, Team names are matched too.

Agents that are turned off aren't listed. Without an internet connection, you get the list this device saw last.

A shortcut keeps working when the Agent's chat changes. It checks the Agent again each time it runs.

## Ask Siri

These phrases work without any setup:

| Say | What happens |
| --- | --- |
| "Send a message to _Agent_ in AirBuild" | Siri asks "What’s your message for _Agent_?", reads your message back and sends it when you confirm. |
| "Send a message in AirBuild" | Siri asks "Which agent?" first, then for the message. |
| "Open _Agent_ in AirBuild" | AirBuild opens on your chat with that Agent. |
| "Open a conversation in AirBuild" | Siri asks "Which agent?", then AirBuild opens on that chat. |

After a send, Siri says "Sent to _Agent_".

Siri learns your Agents' names each time AirBuild opens on a Team. After you add an Agent, open AirBuild before you say the new Agent's name to Siri.

The same two shortcuts are in the Shortcuts app under AirBuild, named **Send Message** and **Open Chat**. **Send Files** has no phrase, because you can't attach a file to something you say.

## Build a shortcut

1. Open the Shortcuts app and create a shortcut.
2. Add an action and search for AirBuild.
3. Choose **Send Message**, **Send Files** or **Open Chat**.
4. Tap **Agent** (on the Mac, click it) and choose an Agent.
5. Fill in **Message** or **Files**, or leave them to take the previous action's result.

Some shortcuts you can put together:

| Shortcut | What it does |
| --- | --- |
| **Dictate Text**, then **Send Message** | Say a message and send it. |
| **Take Screenshot**, then **Send Files** | Send a screenshot. |
| **Select Photos**, then **Send Files** | Send the photos you pick. |
| **Send Message**, then **Open Chat** | Send, then open the chat to see the reply. |

## Confirming a send

If you were asked for the message while the action ran (Siri does this when you don't say it up front), it's always read back to you, and nothing is sent until you confirm. A shortcut you built, or an automation, sends without asking, unless the system judges its input uncertain. Then it asks too.

The question says what goes. For example: Send “Fix the login screen” to _Agent_?, Send 3 photos to _Agent_?, or Send “Here’s the crash” and 2 files to _Agent_? It says photos only when every file is a picture.

The message is sent as you, the same as if you had typed it in the chat. Files upload first, then the message goes. If the network drops for a moment, AirBuild tries again on its own. If a file still can't be uploaded, nothing is sent.

## Questions

When an action can't finish, Siri or Shortcuts shows one of these. Each one stops the shortcut: the actions after it don't run, and nothing was sent.

| What it says | What to do |
| --- | --- |
| Open AirBuild and sign in first. | Sign in to AirBuild on this device, then run it again. |
| Unlock this device first. | Unlock your iPhone or iPad and run it again. |
| Open AirBuild and allow data sharing first. | Open AirBuild and choose **Agree and Continue** on **Before You Start**. |
| Connect to the internet to see your agents. | The Agent list couldn't be read, and this device has no saved list. Connect and try again. |
| _Agent_ can’t receive messages anymore. | The Agent was removed or turned off, or you're no longer in its Team. Choose another Agent. |
| Add a message or a file to send. | Give the action some text or a file. |
| Couldn’t read _file_. Nothing was sent. | The file was empty or couldn't be opened. Check the action before it. |
| _file_ is a folder. Compress it to attach it. | Compress the folder into a .zip and send that. |
| Couldn’t upload _file_. Nothing was sent. | Check your connection and run it again. |
| _file_ is too large to send. Choose a smaller file. | Send a file under 1 GB. |
| Couldn’t send the message. Try again. | Check your connection and run it again. |

**Why can't I pick a Project chat or a group?**

The actions reach only your own chat with one Agent. Project chats, groups and chats with people aren't offered.

**Why is an Agent missing from the list?**

Agents that are turned off aren't listed. In a Team someone else owns, an Agent is listed once your chat with it is in your list of chats. If an Agent is missing, send it a message once in AirBuild, then try again. The app doesn't say whether that chat is there before your first message.

**Can Send Message open the chat too?**

No. It runs without opening AirBuild. Add **Open Chat** after it.

**Is this the Siri & Shortcuts row in a Project's profile?**

No. That row lists the App Intents in the app you're building; see [Let people use your app from Siri and Shortcuts](https://air.build/docs/build/add-siri-and-shortcuts-to-your-app/). This page is about AirBuild's own actions.
