Skip to content

docs(content): document sending pages to Webflow and choosing where they go (Send to CMS #1331, phase 2 part 5) - #1507

Merged
gkhngyk merged 4 commits into
ansvisor:mainfrom
cihan-gyk:docs/cms-webflow
Oct 27, 2026
Merged

gkhngyk merged 4 commits into
ansvisor:mainfrom
cihan-gyk:docs/cms-webflow

Conversation

@cihan-gyk

@cihan-gyk cihan-gyk commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

#1331, phase 2, part 5: the docs. This PR is cut from main and only touches docs. Merge it after #1503, #1504, #1505, #1506 and #1509, since it describes them.

guides/send-to-cms.mdx

  • The intro now names both ways a page can go: straight into Webflow as a draft item, or to the brand's webhook for a workflow tool. Ansvisor still never publishes on its own.
  • New section, Connect Webflow:
    • making a site token in Webflow, with Sites: Read and CMS: Read and write;
    • pasting it in Settings → Integrations. The token is kept by the connector service, not by Ansvisor's database;
    • picking the collection, and the field map: content (rich text, required), meta title, meta description and JSON-LD (plain text, optional);
    • the suggested fields;
    • a required field that blocks a collection;
    • the JSON-LD embed in the template;
    • Replace token and Disconnect.
    • A self-hosting note covers COMPOSIO_API_KEY and COMPOSIO_WEBFLOW_AUTH_CONFIG_ID.
  • Renamed: "Before you start" is now Set up your workflow (the webhook steps, unchanged).
  • New section, Choose where pages go: the dialog's two cards, Webflow first, the choice remembered per brand, and a not-ready Webflow shown but off.
  • Send one page, what a Webflow send does:
    • the page is a draft item, updated in place on the next send. A new one is made if the old item was deleted, or after the collection changes;
    • tables go as lists;
    • images aren't sent yet;
    • an empty meta description goes as the page's opening words;
    • the toast says what happened.
  • Published: once the item is published in Webflow, the page becomes Published at /{collection}/{slug} on the site. It's checked when the Library opens and daily (feat(content): mark pages sent to Webflow published once they go live there (Send to CMS #1331, phase 2 part 6: Webflow published) #1509). A page sent again stays sent until Webflow's next publish, and a deleted item reads "Removed in Webflow".
  • Limits: the 200-a-day cap is shared with the webhook, and a page already on its way to Webflow isn't sent there twice.
  • Library icons: the paper plane also means "a draft item in Webflow".

Other pages

  • guides/content-editor.mdx: the Send to CMS line names Webflow too.
  • api-reference/webhooks.mdx: content_draft.sent fires for webhook sends only, not for pages sent to Webflow.

Related issue

Part of #1331 (phase 2, Webflow). Describes #1503, #1504, #1505, #1506 and #1509.

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/guides/send-to-cms.mdx against #1505's card and #1506's dialog. The wording follows their en.json strings.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/): docs only
  • yarn typecheck passes (run from web/): docs only
  • yarn format:check passes (run from web/): docs only
  • Changes are focused — one concern per PR

🤖 Generated with Claude Code

…hey go (Send to CMS ansvisor#1331, phase 2 part 5)

Send to CMS's guide covers connecting a brand's Webflow site (site token,
scopes, collection and field map, the JSON-LD embed, self-hosting env),
choosing Webflow or the workflow in the Send dialog, what a Webflow send
does (draft item, updated in place, tables as lists, no images yet, the
meta description's fallback), the shared daily cap and the Library mark.
The Content Editor guide and the webhook event table say which sends go
through the webhook.

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

mintlify Bot commented Oct 25, 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 5d3d5de.

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.

Looks good.

What I checked against the code of #1503–#1509:

  • Connect Webflow.
    • The token: its scopes and where to make it match the card's hint. It's checked with Webflow when saved (listSites), and only the Composio account id is kept (00283 has no token column).
    • The field table matches PART_TYPES, and the suggested names (post-body, post-summary, seo-title) match HINTS. Name and slug always go to Webflow's own fields.
    • The JSON-LD field is sent as plain JSON, so the template embed is needed.
    • Replace token keeps the collection and fields on the same site.
    • The self-hosting note names the two variables isWebflowConfigured reads, and the card says "isn't set up" without them.
  • Choose where pages go. Webflow comes first, the choice is kept per brand in the browser (localStorage), and a Webflow that isn't ready shows but is off.
  • Sending to Webflow.
    • An item is updated in place, and a new one is made after a delete or a change of collection.
    • Tables go as "Header: cell · …" lists, images are left out, and an empty meta description falls back to the opening words.
    • The toasts match sentWebflow, sentWebflowUpdated and webflowChanged.
  • Published. It follows #1509: only after Webflow's publish, a page sent again waits for the next publish, and a deleted item reads "Removed in Webflow".
  • Limits and icons. The 200 a day is one count for both targets (reserve_content_deliveries), a second Webflow send is refused while one is queued, and the paper plane covers Webflow draft items. content_draft.sent fires for webhook sends only.

Low, wording (fine as a follow-up):

  1. docs/guides/send-to-cms.mdx:72:
    • "Ansvisor checks when you open the Library and once a day": only sends from the last 60 days are checked. A page published in Webflow after that stays "In Webflow as a draft item". Say so, and that sending it again starts the check over.
    • "on your domain": the address uses the custom domain the site was last published to, or the site's webflow.io address when it has none.
  2. send-to-cms.mdx:26:
    • "A collection that requires a field Ansvisor doesn't fill can't be picked": it can be picked. Save refuses it and names the field (checkFieldMap). Say "can't be saved".
    • Connecting, picking the collection, replacing the token and disconnecting are for admins and managers only (cms.js WRITE_ROLES); members see where pages go. Say so at step 2, as the workflow section does.
  3. send-to-cms.mdx:64: the item's slug is the page's slug turned into one Webflow takes: lowercase letters, digits, - and _, with accents dropped and dots turned into - (webflowSlug). So the live address can differ from the slug in the dialog. One line under "To Webflow" would cover it.

…slug and the 60-day check (review)

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

Copy link
Copy Markdown
Collaborator Author

Thanks — the three wording follow-ups are in 3a18ed2 (docs/guides/send-to-cms.mdx):

  1. Published check: it now says only sends from the last 60 days are checked, that a page published later stays "In Webflow as a draft item", and that sending it again starts the check over. The address is on the custom domain the site was last published to, or its webflow.io address when it has none.
  2. Step 2 / step 3:
    • Connecting, picking the collection, replacing the token and disconnecting are for admins and managers only; members see where pages go.
    • A collection that requires a field Ansvisor doesn't fill "can't be saved: Save names the field".
  3. To Webflow: one line on the item slug. It's lowercase letters, digits, - and _, with accents dropped and dots turned into -, so the live address can differ slightly from the dialog's slug.

@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.

Looks good. We'll merge it once Webflow works on the production API (#1503, #1504 and #1509 deployed and the Webflow auth config set), so the docs don't describe a feature people can't reach yet.

What I checked:

  • Earlier items, all done in 3a18ed2:
    1. The published check. The docs now say:

      • only sends from the last 60 days are checked;
      • a page published in Webflow after that stays "In Webflow as a draft item", and sending it again starts the check over;
      • the address is on the custom domain the site was last published to, else on its webflow.io address.

      Done.

    2. Step 2. It says only admins and managers connect, pick the collection, replace the token or disconnect, and that members see where pages go. A collection with a required field Ansvisor doesn't fill now "can't be saved", and Save names the field. Done.

    3. To Webflow. The new line on the item slug matches webflowSlug. Done.

  • Against the stack's fixes since round 28:
    • #1505. "The card says so and asks for a new one" on a refused token still holds.
    • #1506. When Webflow is read but isn't ready, it still shows, turned off, with what to fix, so "Choose where pages go" holds.
    • #1509. A send after "Removed in Webflow" now tries the old item first. It updates the item if it's still there and makes a new one if it's gone, so "send it again to make a new item" still holds.
  • Merge. Docs only. It merges cleanly on main.

Low, optional:

  1. docs/guides/send-to-cms.mdx, "Choose where pages go": since #1506's fix, a Send dialog that can't check Webflow sends to your workflow. For someone who picked Webflow before, it says so, with Try again. One sentence would cover it, since the paragraph's point is that pages don't go to the workflow unnoticed.

…ur workflow, and says so (review)

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

Copy link
Copy Markdown
Collaborator Author

Thanks. Added in 5d3d5de. Under "Choose where pages go": if the dialog can't check Webflow just then, the page goes to your workflow, and someone who chose Webflow before is told so, with Try again. It also says the brand remembers where you last sent, not only what you picked (#1506's c1ae682).

@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.

Looks good. Merging it now.

Follow-up for the docs PR: #1600 added a Date row to the field map (filled with the day a page is first sent to Webflow, on a DateTime field; a re-send leaves it as it is). The field table under "Connect Webflow" doesn't list it yet.

@gkhngyk
gkhngyk merged commit fc64c8e into ansvisor:main Oct 27, 2026
6 checks passed
gkhngyk pushed a commit that referenced this pull request Oct 28, 2026
…ard's error and the docs (#1669)

Follow-up from #1593. The Webflow card's steps say "set CMS to Read and
write and Sites to Read-only". The error for a token without those
permissions said "Sites: Read and CMS: Read and write", and the Send to
CMS guide (#1507) said "Apps & integrations" and "Sites: Read".

- The error reads "The token needs CMS: Read and write and Sites:
  Read-only. Generate a new one with them."
- The guide's Connect Webflow step repeats the card's four steps, in the
  card's words: Site settings › Apps & Integrations › API access, the
  token name, the permissions, and that Webflow shows the token once.

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
gkhngyk added a commit that referenced this pull request Oct 28, 2026
* fix(cms): give a Webflow item sent again a date when it has none

Follow-up from #1600 (item 1). Only a new item was given the day it's
sent; an item sent again kept its date. So a brand that maps an optional
date later, or makes its date required in Webflow, kept an empty date on
every item sent before, and a send again left it empty.

When the field map gives a date, sendToWebflow now reads the item before
updating it (getItem, which says which fields hold a value) and, when its
date is empty, sends today's with the update. An item that can't be read
is updated without a date, as before; without a date field nothing is
read.

The Send to CMS guide's field table lists the Date field (#1507's
follow-up) and says an item sent again keeps its date, or gets one.

fieldDataFor (webflow-items.js) is unchanged, so this doesn't meet the
Framer PRs' edit at its end (#1576, #1579).

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

* docs(cms): say which Webflow items are given the day they're sent

Review follow-up. The comment above createItem still said only a new item
is given the day it's sent, but an item sent again with an empty date now
gets it too. It names both now. Comment only; webflow-items.js untouched.

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

* fix(cms): keep a Webflow item's date when the read didn't see its fields

---------

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Gökhan Geyik <[email protected]>
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.

2 participants