# Add an AirBuild service to your app

> What each AirBuild service does, how to answer an Agent's service card with Turn On or Not Now, and how to ask the Agents to add a service yourself.

Source: https://air.build/docs/services/add-an-airbuild-service/

AirBuild has services your app can use, such as a server, AI calls, a feedback form and analytics. Your Agents don't add them to your app on their own. Either an Agent offers one with a card in the chat and you answer it, or you ask for one from the service's tab.

## The services

| Service | What it gives your app | Tab | Has an on/off switch |
| --- | --- | --- | --- |
| **AirHost** | A server for your app's API and website, a database, and sign-in with Apple, Google or GitHub. | **Hosting**, **Databases**, **App Users** | No, it's always on |
| **AirRouter** | AI models called from your app's server: text, images, speech and video, with what each call cost. | **AirRouter** | Yes |
| **AirKnowledge** | A knowledge base people can ask questions in your app, with answers that name the files they came from. | **Knowledge** | Yes |
| **AirFeedback** | A feedback form inside your app, plus crash reports. | **AirFeedback** | No |
| **AirPayment** | A notice for each purchase in your app, checked against the App Store's signature, with revenue, purchases and refunds. | **AirPayment** | No |
| **AirTraffic** | How people use your app: active people, screens, events and who comes back. | **AirTraffic** | No |

Each service's page in the app says what it costs. AirRouter says "Pay only for what your app uses." AirKnowledge says your app's answers are paid like any AI call it makes, and that **Try It** uses AirBuild AI. The others say "Free with AirBuild."

## Open a service's tab

**iPhone**

Open the Project's chat and tap the tabs button (four squares) in the top-right corner. In the list under the tab cards, tap the tab, for example **AirFeedback**.

**Mac**

Open the Project's chat and choose **View › Go To**, then the tab, for example **AirFeedback**. You can also open the inspector (**View › Show Inspector**, ⌥⌘I), click **New Tab** (**+**) and click the tab.

On the **New Tab** page the service tabs are in two groups: **AirBuild Services** (**AirFeedback**, **AirPayment**, **AirRouter**, **AirTraffic**) and **AirHost** (**Hosting**, **Databases**, **App Users**, **Knowledge**). **Knowledge** is the AirKnowledge tab: it's listed in the **AirHost** group, but AirKnowledge is a service of its own, with its own switch.

## Answer an Agent's service card

When something you ask for fits one of these services, an Agent can send a card about it in the Project's chat. The card shows the service's name, the Agent's reason (or the service's own one-line description) and one button. An Agent may also suggest AirFeedback and AirTraffic after a new app first runs, and AirPayment for an app that sells things.

1. Tap the card's button. It says **Turn On _Service_…**, for example **Turn On AirFeedback…**. For AirHost, which is always on, it says **Open AirHost**.
2. A sheet opens with the service's page: what it does in three points and what it costs.
3. Choose what to do:
   - **Turn On _Service_**: on a card asking to turn on AirRouter or AirKnowledge, this turns the switch on for the Project. On a card offering AirFeedback, AirPayment or AirTraffic, it tells the Agents to go ahead and add the service.
   - **Ask Agents to Add**: shown for AirHost instead. It tells the Agents to go ahead.
   - **Not Now**: turns the offer down.
4. The sheet closes and the card shows your answer in place of the button: "Added — the agents are on it", "_Service_ is on", or "Not now".

Either way, the Agent that sent the card is told your answer.

To see the whole tab instead, use **Open _Service_** in the sheet. On iPhone it's at the top right (**Done** at the top left closes the sheet without answering). On the Mac it's at the bottom left of the sheet.

Anyone in the Team can answer a card or turn a service on, not only the owner.

If AirRouter or AirKnowledge is already on when you open the sheet, it says "_Service_ Is On" and there's nothing more to choose.

An Agent can also send a card asking to turn AirRouter or AirKnowledge off. Its button opens the tab, where you can turn the service off at the bottom of the page. The card then says "_Service_ is off".

## Ask the Agents to add a service yourself

You don't have to wait for a card. While a service has nothing to show, its tab shows the service's page with one button.

1. Open the service's tab (see [Open a service's tab](https://air.build/docs/services/add-an-airbuild-service/#open-a-services-tab)).
2. Tap the button:
   - **Ask Agents to Add** on **Hosting**, **Databases**, **App Users**, **AirFeedback**, **AirPayment** and **AirTraffic**, and on **AirRouter** once it's on.
   - **Turn On AirRouter** or **Turn On AirKnowledge** while those are off.
3. For **Ask Agents to Add**, AirBuild first shows the exact words it will send. Tap **Send**, or **Cancel** to send nothing.
4. Your message goes into the Project's chat, with the service under it on one line: its picture, its name and a chevron. The tab then says "Sent to the project chat" (or "Added — the agents are on it") and offers **Open Chat**.

On **Databases** the message asks to "Add a database to the app", and on **App Users** to "Add sign-in to the app". The other tabs ask to "Add _Service_ to the app".

**Turn On AirRouter** turns AirRouter on and sends the same request to the Agents, so they put AI calls into the app. **Turn On AirKnowledge** only turns AirKnowledge on: you add documents first, and send them to the app from the **Knowledge** tab when they're published. See [Answer from your documents (Knowledge)](https://air.build/docs/services/answer-from-your-documents/).

Unlike an Agent's card, your request has nothing to answer. Tap the service's line under your message to open the service's tab.

## Turn a service off

Only AirRouter and AirKnowledge have a switch. At the bottom of the **AirRouter** or **Knowledge** tab, tap **Turn Off** and confirm.

| Service | What the confirmation says |
| --- | --- |
| **AirRouter** | "AI in your app stops working until AirRouter is turned back on." |
| **AirKnowledge** | "Your app stops answering from its knowledge bases until AirKnowledge is turned back on. They are kept." |

AirFeedback, AirPayment and AirTraffic have no on/off switch in the app. To take one out of your app, ask your Agents in the chat. (AirFeedback does have a switch for crash reports; see [Collect feedback and crashes (AirFeedback)](https://air.build/docs/services/collect-feedback-and-crashes/).)

## Questions

**The sheet says “Unable to send to the agent”**

The full message is “Unable to send to the agent. Check your connection and try again.” Your answer didn't reach AirBuild. Check your connection and tap the button again. The card stays open until an answer goes through.

**Why does the tab say “Sent to the project chat” when I didn't ask?**

Someone else in the Team already asked for the service in this Project, or you asked from another device. Tap **Open Chat** to see the request and what the Agents did with it.

**I tapped Not Now. Can I still add the service later?**

Yes. Open the service's tab and tap **Ask Agents to Add** (or **Turn On** for AirRouter and AirKnowledge).

**Where do my Agents work with these services?**

They use the `workers` command. See [workers](https://air.build/docs/cli/workers/).
