Mobile app: connecting services in chat

Mock, dark theme, built on the app's own tokens (autogpt_platform/mobile-app/src/lib/theme.ts). Eight screens: the in-chat card, the sign-in hand-off (two screens), the resumed chat, the key sheet, the chat's Connections tab, adding a connection by hand, and a later composer option.

9:41●●● 􀙇 ▮
☰
O
Otto
⧉
✎
Send a summary of my unread emails to #team every morning
I can set this up. I need access to two services first.
Connect to continueOtto picks up where it stopped once these are connected.
Gmail
Read your email
Sign in
Slack
Post messages · you@…
✓ Connected
OpenWeather
API key
Add key
Message Otto
+
🎙
1 · Card in the chatRendered from any setup_requirements tool output. One row per missing service; label follows the row's type.
9:41●●● 􀙇 ▮
☰
O
Otto
⧉
✎
Send a summary of my unread emails to #team every morning
I can set this up. I need access to two services first.
Connect to continue
Gmail
Read your email
Signing in…
“AutoGPT” Wants to Use “agpt.co” to Sign In
This allows the app and website to share information about you.
Cancel
Continue
2 · System sign-in sheet (iOS)iOS shows this prompt before any OAuth sign-in. We can't change the wording. The domain is our callback host, not Google.
9:41●●● ▮
Cancel🔒 accounts.google.com
Google

AutoGPT wants to access your Google Account

you@example.com ▾
  • Read, compose and send emails from your Gmail account
  • See your primary Google Account email address
CancelContinue
3 · Provider consent in the system browserASWebAuthenticationSession / Chrome Custom Tabs, never a WebView (Google blocks those). Shares Safari's Google login.
9:41●●● 􀙇 ▮
☰
O
Otto
⧉
✎
I can set this up. I need access to two services first.
Connect to continue
Gmail
you@example.com
✓ Connected
Slack
you@…
✓ Connected
OpenWeather
My key
✓ Connected
Connected. Continuing…
I've connected my account. Please continue.
Read your unread emails
Writing the summary
Message Otto
+
🎙
4 · Back in the chat, Otto carries onApp swaps the code, saves the account choice, then sends the same follow-up line the web sends, once.
9:41●●● 􀙇 ▮
☰
O
Otto
⧉
✎
I can set this up. I need access to two services first.

OpenWeather

Paste your API key. It's stored encrypted and never shown in the chat.

••••••••••••••••3f9a
OpenWeather key
Where do I find my key? ↗
Save
5 · Key, password or host sheetSame sheet for api_key, user_password and host_scoped; fields switch by type. Secure entry, no autocorrect.
9:41●●● 􀙇 ▮
‹
Maya · Inbox expert
⤴
Activity
Library
Connections
Maya can use
Gmail
you@example.com
Remove
Slack
AutoGPT workspace
Remove
Notion
Needs reconnecting
Reconnect
Her workflows also need
HubSpot
Weekly pipeline report
Sign in
+ Add connection
6 · Connections in the chat panelNew tab beside Activity and Library for experts. In an Otto chat, the same list sits under the chat's files and shows all your connections.
9:41●●● 􀙇 ▮
‹
Maya · Inbox expert
⤴

Add connection

Already connected
GitHub
octocat
Allow
Linear
AutoGPT
Allow
New
Google Calendar
Sign in with Google
Sign in
MCP server
Any server by URL
Add
7 · Adding one by hand"Allow" grants an account you already have to this expert, with no sign-in. "Sign in" runs screens 2–3, then grants it.
9:41●●● 􀙇 ▮
☰
O
Otto
⧉
✎
New chat
GGmail · work
Draft replies to anything from Acme
+
G
#
GH
↑
8 · Pick an account for a message (later)Mirrors the web's @-mention: a chip sends credential://provider/id with the text. Logo stack shows what the chat can use.

Sign-in flow (screens 1 → 4)

Who does what at each step of a sign-in started from the app
Step123456
App (new)Tap Sign in → GET /integrations/{p}/login?scopes&client=nativeSave pending flow (provider, chat, state) to SecureStoreopenAuthSessionAsync(login_url, "autogpt-app://integrations/oauth")Gets autogpt-app://…?code&state → POST /integrations/{p}/callback with JWTGrant to expert (if any) → PUT credential-selection → send follow-up line
BackendStarts the state with native.Checks state, PKCE, swaps code, saves account (no change)
Web callbackNative state → 302 to app scheme instead of postMessage + close
ProviderConsent pageRedirects to agpt.co/auth/integrations/oauth_callback (already registered)
Purple = new server work. Every step in the App row is new app work. Everything else exists today.