Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Motivation
Google Search Console holds the brand's real search demand — the queries people actually use to find it. Connecting it unlocks a set of planned features (better prompt suggestions from real queries, search-traffic vs AI-visibility insights). This issue covers step 1 only: the connection itself, plus the Settings surface it lives in.
OAuth is handled through Composio managed auth — Composio's verified Google app runs the consent flow and stores the tokens, so no Google app verification process is needed on our side. The Composio project for this product is already set up; the server reads the API key and the Search Console auth-config id from environment variables.
Scope
1. Settings → Integrations section
- Add an
integrationsentry to the section nav in web/src/app/[locale]/(dashboard)/dashboard/settings/page.tsx (same pattern as the existing sections; support?tab=integrationsdeep-linking likebilling/notifications). - The section lists available integrations as cards — only Google Search Console for now, but the layout should trivially take more cards later.
- Card states: Not connected (Connect button) → Connecting (OAuth window open, polling) → Connected (connected account label + Disconnect button).
2. Connection flow (server)
- New server routes (e.g.
server/src/routes/integrations.js) + a small Composio helper (e.g.server/src/lib/composio.js):POST /api/integrations/google-search-console/connect— calls ComposioconnectedAccounts.link(entityId, authConfigId, { callbackUrl }), returns theredirectUrlfor the client to open.GET /api/integrations/google-search-console/status— resolves the current connection state (verify against ComposioconnectedAccounts.list, not just our stored row).DELETE /api/integrations/google-search-console— deletes the Composio connected account and clears our row.
- Entity id: derive from the organization (one GSC connection per org to start; per-brand property mapping comes with the data-pull follow-up).
- Env:
COMPOSIO_API_KEY,COMPOSIO_GSC_AUTH_CONFIG_ID(server-only).
3. Persistence
- New table
integration_connections:id,organization_id,provider(google-search-console),composio_account_id,composio_entity_id,status,connected_by,created_at,updated_at. Unique on(organization_id, provider). RLS: org members read, admins/owners write. - Migration as a numbered file under supabase/migrations.
Out of scope (follow-ups)
- Pulling Search Console data (queries/pages) and feeding prompt suggestions.
- Any usage metering/credits — there is none for this feature for now.
- Other integrations — this issue only establishes the surface they will plug into.
Acceptance
- Settings shows an Integrations section with a Google Search Console card.
- Connect opens the Composio-hosted Google consent flow; after granting access the card shows Connected without a page reload.
- Disconnect removes the connected account on Composio and resets the card.
- Connection state survives reloads and is scoped to the organization (visible to teammates).
- Self-host builds without the Composio env vars keep working — the card renders a "not configured" state instead of erroring.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
d180 commentedon Aug 1, 2026
@gkhngyk saw that almost every issue is already assigned to someone so if you need any help on this issue than let me know. Happy to help.
feat: add Settings Integrations tab with Google Search Console connec…