Connecting Adapters
Adapters let external systems talk to GSV processes. This tutorial connects WhatsApp, Discord, or Telegram from the Web Desktop. Use this flow first; the CLI commands are mainly useful for automation and recovery.
This assumes you completed Getting Started with GSV and can open the Desktop in your browser.
1. Open the Adapter UI
The Desktop is made of package apps. Open GSV > Packages if you need to verify the built-in apps are installed, then open GSV > Integrations.
If adapter Workers were not deployed yet, deploy them from the CLI:
gsv infra deploy -c channel-whatsapp
gsv infra deploy -c channel-discord --discord-bot-token "$DISCORD_BOT_TOKEN"
gsv infra deploy -c channel-telegram --telegram-bot-token "$TELEGRAM_BOT_TOKEN"Deploying everything with gsv infra deploy --all includes all adapter Workers. If your deployment uses a named instance, pass the same --instance NAME or set GSV_INSTANCE for adapter deploys.
2. Connect WhatsApp
In GSV > Integrations:
- Select WhatsApp.
- Use account id
primaryunless you need multiple WhatsApp accounts. - Click Connect. Enable the force/reconnect option if you are replacing an old pairing.
- Scan the QR code with WhatsApp: Settings, Linked Devices, Link a Device.
The account should move to a connected status after pairing completes. Send a test message to the linked WhatsApp account from another sender.
3. Connect Discord
Create a Discord bot in the Discord Developer Portal:
- Create an application and add a bot.
- Copy the bot token.
- Enable Message Content Intent when the bot needs to read message text.
- Invite the bot to the server where you want to use it.
In GSV > Integrations:
- Select Discord.
- Use account id
mainunless you need multiple bot accounts. - Paste the bot token, or leave it blank if it was provided during deploy.
- Click Connect and confirm the status becomes connected.
Mention the bot in a server channel or send it a direct message.
4. Connect Telegram
Create a Telegram bot with BotFather and copy its bot token.
In GSV > Integrations:
- Select Telegram.
- Use account id
botunless you need multiple bot accounts. - Paste the bot token, or leave it blank if it was provided during deploy.
- Click Connect and confirm the status becomes connected.
Send the bot a direct message, add it to a group, or post in a channel where the bot receives updates.
5. Link External Identities
GSV does not deliver unlinked external actors directly into a user's process. The normal flow is:
- Send a message from WhatsApp, Discord, or Telegram.
- Copy the one-time link code returned by the adapter.
- Open GSV > Access.
- Redeem the code under Identity links.
- Send another message from the external account.
Root users can also create links manually in the same Access section when they know the adapter, account id, actor id, and target uid.
6. CLI Fallback
Use CLI adapter commands only when you want scripts or terminal diagnostics:
gsv adapter connect --adapter whatsapp --account-id primary --config-json '{"force":true}'
gsv adapter status --adapter whatsapp --account-id primary
gsv adapter connect --adapter discord --account-id main \
--config-json '{"botToken":"<discord-bot-token>"}'
gsv adapter status --adapter discord --account-id main
gsv adapter connect --adapter telegram --account-id bot \
--config-json '{"botToken":"<telegram-bot-token>"}'
gsv adapter status --adapter telegram --account-id botRedeem a link code from the CLI if you are logged in as the target user:
gsv auth link CODETroubleshooting
- If GSV is missing, run
gsv packages syncfrom the CLI. - If WhatsApp does not show a QR code, reconnect with the force option enabled.
- If Discord stays offline, check the bot token, invite permissions, Gateway status, and Message Content Intent.
- If Telegram stays offline, check the bot token and webhook base URL.
- If messages are ignored, open GSV > Access and confirm the external actor is linked to the intended user.