Integrations

How to Connect Your Sanity CMS to MorningAI

Connect Sanity to MorningAI with an API token and let the Agent draft, edit, schedule and publish any document type in your project, with approvals and a Calendar view.

Browse Integrations

You can connect Sanity to MorningAI in about five minutes using an API token: create a token in Sanity, then paste it with your Project ID in DNA → Connectors → Sanity (under CMS & Blog). MorningAI reads your schema, so the Agent can draft, edit, schedule and publish any document type in your project, from blog posts to customer stories, and your scheduled Sanity documents show on the Calendar next to your social posts. Your token is stored securely and used only for the project you configure, and you can revoke it instantly from Sanity's dashboard.

Why Connect Sanity to MorningAI

Writing a post in MorningAI and then rebuilding it in your CMS is slow and error-prone. Fields get missed, Portable Text breaks, and scheduling the blog separately from the social posts that promote it creates coordination gaps.

With Sanity connected, you hand that work to the Agent. Start with an idea and ask for a draft. Stay in the same conversation to refine the copy, generate or swap the images, and schedule or publish the approved version in Sanity. It goes beyond blog posts: the Agent can read and edit any document type in your project, whether that is customer stories, articles, or types you defined yourself, and one editor opens all of them when you would rather make a change by hand.

How to Connect Sanity (Step by Step)

  1. In Sanity, go to Manage → API → Tokens → Add token with Editor (write) permissions. Copy the token.
  2. In MorningAI, go to DNA → Connectors and click Connect on Sanity.
  3. Paste the token, your Project ID, and the dataset if you use more than one.
  4. Done. The card shows Connected and how many document types MorningAI found in your schema.

If you change your schema in Sanity later, click Refresh schema on the card so the Agent sees the new fields. You can find your Project ID in Sanity's project settings.

For tighter control, create a dedicated token for MorningAI, and use a dedicated dataset if you want access to be exactly as narrow as possible.

What the Connection Unlocks

  • Draft to publish in one conversation. Ask for a post, refine it, add a header image, and schedule or publish it. For example: "Draft a post announcing our fall flavors, add a header image, and schedule it for Tuesday at 9am."
  • Any document type. The Agent reads and edits blog posts, customer stories, articles, and your own custom types, with fields mapped to your schema: title, slug, body as Portable Text, categories, SEO metadata, featured image as a real Sanity asset, author, publish date and custom fields.
  • Approvals built in. Creating, updating, scheduling or publishing a document shows up as an approval card before it happens.
  • Calendar view. Scheduled Sanity documents appear on the Calendar next to everything else you have planned.
  • The CMS Document app. Open Apps → CMS Document when you want to start from a form rather than a conversation.

What MorningAI Can and Can't Do

MorningAI canMorningAI can't
Draft, edit, schedule and publish any document type in your projectPublish or change a document without your approval
Map fields to your schema, including Portable Text, SEO, images and custom fieldsPublish to WordPress, Webflow, or Shopify blogs
Show scheduled Sanity documents on the CalendarWork outside the project and dataset you configured
Refresh its view of your schema when you change itChange your Sanity schema itself

Your Data, Your Control

The token you provide is used only for the project and dataset you specify. We recommend a dedicated token for MorningAI so access is exactly as narrow as you want. Sanity shows token usage in its own dashboard, so you can monitor activity on the Sanity side.

Your token is stored securely and used only for your configured project. To revoke access, delete the token in Sanity's dashboard. Access ends instantly, regardless of anything on our side. For broader context on how MorningAI handles data, see our security page at /resources/security.

Real-World Use Cases

Launch day coordination. Write the blog post, schedule it in MorningAI, and schedule the social posts that promote it on the same calendar so everything goes live together.

Update an existing page. Ask the Agent to swap the quote on a customer story or update the pricing line in an article. It finds the document, shows you the change, and publishes once you approve.

Clean takedowns. Unpublish a post from MorningAI when a campaign ends, without opening Sanity Studio.

Frequently Asked Questions

Is it safe to give MorningAI a Sanity API token?

Yes, when you scope it deliberately. The token is used only in the project and dataset you specify. We recommend a dedicated token, and Sanity shows token usage in its own dashboard.

Can MorningAI edit my existing Sanity content?

Yes. The Agent can read and edit any document type in your project, and every change waits for your approval first.

The Agent doesn't see a field I added in Sanity.

Click Refresh schema on the Sanity card in DNA → Connectors.

How do I revoke MorningAI's access to Sanity?

Delete the token in Sanity's dashboard. Access ends instantly.

Next Steps

Sanity closes the loop from MorningAI to your site. Next, learn how to schedule content on the calendar alongside your social posts, or connect Google Search Console to ask what is ranking once your posts go live.

Customer Success Team
Customer Success Team

Writers

The MorningAI Customer Success team is here to help you win. Whether you're stuck, scaling, or just getting started, we move fast, solve problems, and make sure nothing slows you down.

Was this article helpful?

See it live on your brand

Docs are a start — book a demo and we'll show you MorningAI running on your own products.

Related Articles