Graine AI

Use cases by SDK

Every use case of the in-app SDKs against every platform: each cell opens the exact code for that use case on that platform — iOS, Android, Flutter, React Native, Kotlin Multiplatform and the website — end to end, from setting up to cleaning up.

Each row is one thing your app does with the agent; each cell opens that platform's code for it, end to end — the functions to call in order, what they read or set, and what to expect at each step. Every how-to also lists the dashboard settings it needs and a troubleshooting table.

Use caseiOSAndroidFlutterReact NativeKotlin MultiplatformWebsite
Install the SDK and get the first answerSwiftKotlin, JavaDartTypeScriptKotlinJavaScript
Identify the user: memory and conversations that continueSwiftKotlin, JavaDartTypeScriptKotlinJavaScript
Send your user's details to the agent: prompt variablesSwiftKotlin, JavaDartTypeScriptKotlinJavaScript
Chat: the window, its sizes and the Garage's controlsSwiftKotlin, JavaDartTypeScriptKotlinJavaScript — the widget draws the chat; no chat object on a page
The voice barSwiftKotlin, JavaDartTypeScriptKotlinJavaScript — the widget's own voice call
Several agents in one appSwiftKotlin, JavaDartTypeScriptKotlinJavaScript — one agent on a page at a time
Screen context, actions and componentsSwiftKotlin, JavaDartTypeScriptKotlinJavaScript
WhatsApp-style calls: the user calls the agentSwiftKotlin, JavaDartTypeScriptKotlinNot on this platform: a browser cannot hold a phone-style call — the widget's voice call
Calls Graine rings: booked calls and Ring nowSwiftKotlin, JavaDartTypeScriptKotlinNot on this platform: a browser cannot be rung — a booking from the website rings the user's app
Calls over WebRTC: both directions, steadier on a weak networkSwiftKotlinDartTypeScriptKotlinNot on this platform: the widget's voice call uses WebRTC already — the voice bar
Booking from your app with the SDK's sheetSwiftKotlin, JavaDartTypeScriptKotlinJavaScript — the call rings the user's app
The scheduled-calls listSwiftKotlin, JavaDartTypeScriptKotlinJavaScript
Design in the GarageSwiftKotlinDartTypeScriptKotlin — the views draw it; tokens come from each platform's SDKJavaScript — the widget draws it
Going liveSwiftKotlinDartTypeScriptKotlinJavaScript

Before the first row

The dashboard side, in order, with screenshots: Set up everything from scratch. What your app can tell the agent, and how it reaches the prompt: Variables; mapping your user's fields to the prompt's placeholders, step by step: Send your user's details to the agent.

Every function and type

Each platform's reference lists every public function, property, event, error and type of its SDK, grouped by these same use cases, then A to Z: React Native · iOS · Android · Flutter · Kotlin Multiplatform · Website.

On this page