Skip to content

docs(contributing): a guide to adding an integration, with Webflow as the worked example - #2189

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:docs/adding-an-integration
Nov 6, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:docs/adding-an-integration

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Adds docs/contributing/adding-an-integration.md, a guide for contributors and agents who add an integration. It uses Webflow as the worked example.

It covers:

  • The per-brand connection model (00470): integration_accounts, brand_integrations, brand_cms_connections, and brandConnection() after assertBrandAccess.
  • The closest existing example for each kind: CMS, data read, catalog and bot log.
  • A walk through the Webflow integration.
  • Adding a bot-log source (READERS, CONNECTION_KINDS).
  • What every integration must ship with:
    • en.json strings;
    • secrets that are encrypted and never logged;
    • role checks and the write-roles test;
    • Vitest tests with fixtures;
    • a Help article;
    • "not configured" on self-hosted;
    • drafts, not live publishes.
  • The steps before a PR.

Every file path and function name in the guide was checked against main. Links that leave docs/ are full GitHub URLs, so they also work on Mintlify. CONTRIBUTING.md (Ways to Contribute) and CONNECTORS.md (intro) link to the guide.

Note: docs/contributing/ isn't in mint.json's navigation, so the page builds as a hidden page. A nav group can follow if you want one.

Related issue

Closes #2138

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

Read docs/contributing/adding-an-integration.md and follow a few of its paths into the code.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR
  • Help article updated under help/ (or no user-visible change) — see help/README.md

CI passed on this branch (a18721d), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/42210294028): schema is up to date; web format:check, lint, typecheck, all tests and yarn build pass; server lint, format:check and all tests pass.

🤖 Generated with Claude Code

… the worked example

Closes ansvisor#2138. docs/contributing/adding-an-integration.md shows how an
integration plugs into Ansvisor today, for the community integration
issues:

- every connection belongs to a brand (00470: integration_accounts, the
  account's pool of sign-ins; brand_integrations, the one each brand
  uses; brand_cms_connections for a CMS site), read with
  brandConnection() after assertBrandAccess;
- the nearest pattern per kind: content send (cms/webflow*.js and
  NATIVE in content-delivery.js), data read (gsc-sync.js), catalog
  (CONNECTORS.md), AI bot logs (bot-log-formats.js READERS and
  CONNECTION_KINDS);
- Webflow, part by part;
- what every integration ships with: a card with strings in en.json,
  secrets encrypted and never logged, role checks, Vitest tests against
  recorded fixtures, a Help article, "not configured" on a self-host, and
  drafts rather than publishing;
- the review steps before the PR.

CONTRIBUTING.md and CONNECTORS.md link to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mintlify

mintlify Bot commented Nov 6, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit a18721d.

Approve preview

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@gkhngyk
gkhngyk merged commit 81016a6 into ansvisor:main Nov 6, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(contributing): a guide to adding an integration, with Webflow as the worked example

2 participants