Growth plan. Publishing articles needs Growth, which includes the Writer Agent.
Connect a Sanity project and the articles you approve are written into your dataset as new documents, published or as drafts. Used by: AI Marketer.

What gets published

Each article becomes a document of the type you pick, with your own field names: Articles carry no images.

Setup

BeforeQuery finds your document types and fields from documents already in the dataset. Have at least one article there, with every field you want to map filled in.
1

Create a token

In sanity.io/manage, open the project, then API → Tokens → Add API token, with Editor permissions. Copy it.
2

Connect

In BeforeQuery, open Integrations and click Connect on Sanity. Enter:Click Connect. We check that the token can read and write before saving it. The test write isn’t kept.
3

Map your fields

The settings open. Choose the Document type for articles, then its fields. The type, Title field and Article body field are required.

Publish settings

Under When an article is approved, pick Publish it, or Save it as a draft in Sanity to publish it yourself from your Studio. Change it any time under ⋯ → Settings on the Sanity tile.

Publish an article

In Needs you, click Publish to Sanity on the article, or Save as a draft in Sanity if you chose drafts. Click Schedule to pick a time instead. Owners and admins publish. Sanity doesn’t send back a page address, so the log names the article by its title.

Troubleshooting

Disconnect

Open ⋯ → Disconnect on the tile. Then delete the token in sanity.io/manage.