Skip to content
Browse articles
Guides

Mobile apps

Add agent44 to an iOS, Android, Flutter or React Native app with its SDK, or through the API directly.

Agent44Updated 3 min read

On this page

In one minute#

The quickest way in is the SDK for your platform: iOS, Android, Flutter or React Native, listed with their install lines in the developer docs overview. Each one draws the chat, help center and in-app messages as native screens and makes every call on this page for you. Building your own screens, or on another platform? This page lists the calls an app makes and when, so you can make them yourself.

Each app you ship (each iOS app and each Android app) is its own app in Settings โ€บ Apps, with its own public key. A cross-platform app has two keys: the iOS build sends the iOS app's key and the Android build the Android app's. That's how agent44 knows which store link, push service and in-app messages apply.

At launch#

sequenceDiagram
  participant App
  participant API as api.agent44.ai
  App->>API: POST /v1/identify (ids, attributes)
  App->>API: GET /v1/prompts?app_version=&previous_version=
  API-->>App: in-app messages, most important first
  App->>API: POST /v1/push/devices (token, environment, app_version)
  API-->>App: 201
  1. Identify. Send the user id once signed in, else an anonymous id you create on first launch and keep on the device. Send the device's context as attributes (below). See Identity and security.

  2. In-app messages. Ask for the prompts to show at this launch and show the first one. Store the app version after each launch, so you can send it as previous_version next time. See In-app messages.

  3. Push. If you've set up push, register the device's token at every launch and whenever it changes. See Push notifications.

Attributes the inbox understands#

Your team sees these in the contact panel next to every conversation, and the AI agent uses platform and app_version to pick help articles that match the user's app. Send any other keys you like; they appear as custom attributes and can be used in segments.

Attribute

Example

app_version

4.2.0 (CFBundleShortVersionString, versionName)

build

431

platform

ios, android

os_version

18.1

device

iPhone16,2

locale

en-GB

country

GB

timezone

Europe/London

revenuecat_app_user_id

The RevenueCat App User ID, when it isn't your user id.

superwall_app_user_id

The Superwall user id, when it isn't your user id.

With RevenueCat or Superwall connected (Settings โ€บ Integrations), the inbox shows the user's subscription, looked up by these ids or, without them, by your user id.

Support chat#

  • Home screen: GET /v1/messenger gives your workspace's name, logo, brand colour, whether the team is online, the expected reply time, the AI agent's name and the help center's details.

  • Conversation list: GET /v1/conversations, newest first, each with unread.

  • A conversation: GET /v1/conversations/{id}, then poll with ?since= the last message's created_at while it's on screen (every few seconds), sending If-None-Match for cheap 304s.

  • Send: POST /v1/conversations to start one, POST /v1/conversations/{id}/messages to write in one. Upload files first with POST /v1/attachments and send their ids.

  • Seen: POST /v1/conversations/{id}/read when the user has seen the latest messages.

  • Rating: when a conversation has rating_requested: true, ask for a rating and send it with POST /v1/conversations/{id}/rating.

Messages from the AI agent carry sources: the help articles it answered from, as [n] markers in the text. Show them as links. Label every message with author: "agent" as AI (an "AI" badge next to author_name, as the web messenger does), so people know they're not talking to a person. Details are in the Conversations API.

Help center#

Native help screens read the published help center: GET /v1/help (name, look, tabs), GET /v1/help/collections, GET /v1/help/articles, one article with GET /v1/help/articles/{id} (its content as JSON, for native rendering), search, and streamed AI answers. Pass app_version so articles and sections for other versions are left out. See the Help center API.

Rules every client follows#

  • Render every text as plain text, never as HTML or Markdown. The help center and changelog doc JSON is the one structured format, with a fixed set of node types.

  • Retry 429 responses after Retry-After seconds, and never block the UI on analytics calls (events, read receipts).

  • Treat 5xx as temporary and retry with backoff.

Did this answer your question?