Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.idun-group.com/llms.txt

Use this file to discover all available pages before exploring further.

Connect your Idun agent to Google Chat so users can interact with it by @mentioning the bot in spaces and direct messages.

Prerequisites

  • A running Idun agent (engine)
  • A Google Workspace account with access to Google Chat
  • A Google Cloud project (free to create, no billing required for Chat API config)
  • Your engine must be publicly reachable (use ngrok for local development)

Setup

1

Open the integrations admin page

Navigate to /admin/integrations/ in the running standalone. The channel catalog shows the available channels including Google Chat.
2

Create the Google Chat integration

Click Google Chat and fill in the credentials.
FieldValue
service_account_credentials_jsonFull JSON key file content from your GCP service account
project_numberGCP project number (found on the Cloud Console dashboard)
3

Save

Save the form. The reload pipeline registers the Google Chat webhook handler on the running engine.

How it works

  1. User @mentions the bot in a space or sends a direct message
  2. Google Chat POSTs the interaction event to your engine’s webhook
  3. Engine verifies the JWT bearer token (signed by chat@system.gserviceaccount.com) using the project number as audience
  4. Engine extracts the message text (stripping the @mention prefix via argumentText)
  5. Engine invokes the agent with the cleaned text
  6. Engine sends the agent’s reply back via the Google Chat API (spaces.messages.create)
Session tracking: The Google Chat user resource name (users/123456) is used as the session ID, so conversation context is maintained per user. Bot messages ignored: The handler skips messages from senders with type BOT to avoid infinite loops. @mention stripping: Google Chat provides an argumentText field that contains the message text without the @mention. The engine uses this so your agent receives clean input (e.g. “do stuff for me” instead of “@BotName do stuff for me”).

Next steps

Slack

Connect your agent to Slack DMs and channels.

Microsoft Teams

Reach the same agent through Bot Framework in Teams.

Production hardening

Secure the engine before exposing webhooks to the public internet.
Last modified on May 20, 2026