DEEPLINKX / app

ChatGPT

ChatGPT actions, setup, native platforms, and fallback options.

DeeplinkX 1.5.8 · Source

Platforms and setup

Native platforms: ios, android, windows.

Public actions

ChatGPT.open

factory ChatGPT.open({final bool fallbackToStore = false})

Launch with DeeplinkX.launchApp. Native platforms: ios, android, windows. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.

ParameterTypeRequiredDefault
fallbackToStoreboolNofalse

Exact source

ChatGPT.openSharedConversation

static ChatGPTOpenSharedConversationAction openSharedConversation({ required final String shareId, final bool fallbackToStore = false, })

Launch with DeeplinkX.launchAction. Native platforms: ios, android, windows. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.

ParameterTypeRequiredDefault
shareIdStringYes—
fallbackToStoreboolNofalse

Exact source

ChatGPT.openGpt

static ChatGPTOpenGptAction openGpt({ required final String gptId, final bool fallbackToStore = false, })

Launch with DeeplinkX.launchAction. Native platforms: ios, android, windows. Action web fallback: available. Store-fallback flag: supported; opt in explicitly.

ParameterTypeRequiredDefault
gptIdStringYes—
fallbackToStoreboolNofalse

Exact source

Provider setup and examples

DeeplinkX supports opening ChatGPT and stable ChatGPT web links on Android, iOS, and Windows.

Available Actions

Launch ChatGPT

final deeplinkX = DeeplinkX();

await deeplinkX.launchApp(ChatGPT.open());
await deeplinkX.launchApp(ChatGPT.open(fallbackToStore: true));
await deeplinkX.launchApp(ChatGPT.open(), disableFallback: true);

Open a Shared Conversation

await deeplinkX.launchAction(
  ChatGPT.openSharedConversation(shareId: 'abc123', fallbackToStore: true),
);

Open a GPT

await deeplinkX.launchAction(
  ChatGPT.openGpt(gptId: 'g-abc123', fallbackToStore: true),
);

Platform Configuration

iOS

Add the ChatGPT scheme to ios/Runner/Info.plist:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>chatgpt</string>
</array>

Android

Add the ChatGPT package to <queries> in android/app/src/main/AndroidManifest.xml:

<package android:name="com.openai.chatgpt" />
  • Open app: chatgpt://
  • Shared conversation: https://chatgpt.com/share/{shareId}
  • GPT: https://chatgpt.com/g/{gptId}

Fallback Behavior

  1. DeeplinkX opens ChatGPT when installed.
  2. If ChatGPT is not installed and fallbackToStore is true, DeeplinkX redirects to Google Play, the iOS App Store, or the Microsoft Store.
  3. If store fallback is disabled or unavailable, DeeplinkX opens the matching ChatGPT web URL.
  4. Disable all fallbacks with disableFallback: true.

Fallback Support Matrix

ActionStore FallbackWeb Fallback
Open appYesYes
Open shared conversationYesYes
Open GPTYesYes

Check If ChatGPT Is Installed

final deeplinkX = DeeplinkX();
final isInstalled = await deeplinkX.isAppInstalled(ChatGPT());