Unify Applications
Logo
Yellow.ai Action

Yellow.ai Action

Logo

6 mins READ

Overview

The Control Yellow.ai action lets a mobile app open or close the Yellow.ai assistant from an app event. Yellow.ai is configured under Application builder → Settings → Apps & Integrations → Yellow.ai and is available for mobile apps.

Yellow.ai is available only in Mobile apps (iOS and Android). On a phone, the chatbot opens as a full-screen chat; closing it returns the user to the screen they were on. The action isn't offered in web apps. When a mobile app runs in a browser, such as the builder preview, Open chatbot opens nothing and shows "The Yellow.ai chatbot is only available in the mobile app."

Prerequisites

  • A Mobile app.

  • The Yellow.ai integration enabled with a Bot ID in Application builder → Settings → Apps & Integrations → Yellow.ai. The Control Yellow.ai action appears in the action picker only after you enable the integration.

  • A device build of your app to test on. The chatbot doesn't open in the builder preview.

Set Up the Integration

  1. In your mobile app, open Application builder → Settings → Apps & Integrations → Yellow.ai.

  2. Turn on Enable Yellow.ai.

  3. Enter your Bot ID — the bot's unique ID from your Yellow.ai dashboard. It decides which bot loads. This field is required.

  4. Optionally, set Bot name (overrides the title in the chat header; leave blank to use the name set on Yellow.ai) and Bot icon (the avatar shown next to the bot's messages — SVG, PNG, JPEG or WEBP).

  5. Optionally, add User context fields. Each field is a name and a value that's sent to the bot when it launches, so its replies can be personalized. Values support data pills, such as the user's name or employee code.

  6. Your settings save automatically. Publish your app so users get the change. For widget styling, follow the panel's Customization docs link.

unify-applications-yellow-ai-action-01-yellow-ai-settings.png
unify-applications-yellow-ai-action-01-yellow-ai-settings.png

Parameters

Field

Required

Description

Operation

Yes

Open chatbot (open) launches the chat. Close chatbot (close) closes it.

User token

No

Shown only for Open chatbot. Identifies the user to Yellow.ai for their own chat session. Supports bindings. If you leave it blank, the chat opens anonymously. To tie the chat to a user, bind User token, for example to {{ userContext['id'] }} or a token from your backend.

The Bot ID, bot name, bot icon and user context always come from the integration settings — you don't set them on the action.

Step-by-Step Usage Guide

  1. Enable the integration: Complete the setup above and publish the app.

  2. Add a help entry point: On any page where users might need help, add a button or link, such as "Chat with us".

  3. Open the chatbot: In its On Click event, add the Control Yellow.ai action and choose Open chatbot. Optionally, set User token.

  4. Close it from your app (optional): Use the Control Yellow.ai action with Close chatbot wherever you need to dismiss the chat from your app, for example after a flow finishes. Closing a chat that isn't open does nothing, so it's safe to fire.

  5. Test on a device: Install a build of your app on a phone, tap your button, and check that the bot opens with your bot name, icon and user context.

Examples

Open the chatbot

{ "actionType": "controlYellowAI", "payload": { "operation": "open" } }

Open the chatbot with a token your backend issued

{ "actionType": "controlYellowAI", "payload": { "operation": "open", "userToken": "{{ getChatToken['data']['token'] }}" } }

Use this only when Yellow.ai expects a token from your own backend. If you leave User token blank, the chat opens anonymously.

Close the chatbot

{ "actionType": "controlYellowAI", "payload": { "operation": "close" } }

FAQs

Does opening the widget start a new conversation or continue an existing one?

Each time the chatbot opens, UnifyApps passes the Bot ID, the user token (if you set one) and the configured user context to Yellow.ai. Whether the user sees a new conversation or continues an earlier one depends on how your bot is set up on the Yellow.ai platform.

Does the Control Yellow.ai action work in web apps?

No. Yellow.ai is available only in Mobile apps (iOS and Android), where the chatbot opens as a full-screen chat. The integration settings and the action appear only in Mobile apps. When a mobile app runs in a browser, such as the builder preview, Open chatbot shows "The Yellow.ai chatbot is only available in the mobile app." instead. Because there's no floating chat bubble, add an explicit entry point such as a "Chat with us" button.