Contentful lets the AI read your content model and entries, and create or edit entries in one space and environment.
What you can ask for#
Read my Contentful content model, then build a blog page from the Article type.
Add an admin form that creates a new Article entry as a draft.
Show the five most recent entries on the home page.
Connect Contentful#
Step 1: Find the connector
Open Tools, then Connectors, and search for Contentful. You can also go to Settings, then Connectors, in your dashboard.
Step 2: Select Connect
Select Connect to open the secure form.
Step 3: Enter the details
Fill in API key, Space ID, Environment ID and Region. Hidden fields show as dots; use the eye icon to check what you typed.
Step 4: Save
Select Save connection. Swarmz encrypts the credentials and only decrypts them to call Contentful for you. Everyone in your workspace can then use the connection.
Where to find your credentials#
In Contentful, create a Content Management API personal access token. A read scope is enough for reading, and writing needs a manage scope. The token has the same access as its owner, so prefer a dedicated one. Also note your Space ID and Environment ID (often master), and whether your region is global or eu.
What the AI can and can't do#
- Read the content model, so generated code uses your real field names.
- Query entries and show them on your pages.
- Create and edit entries when the token allows it.
- The connection is tied to one space and environment. Everyone using your published app acts as the same Contentful identity.
- Apps you publish can call this connector too, not just the builder.
- Changes ask for your approval by default. You can adjust this under Agent permissions on the connection. See What an integration can access.
Troubleshooting#
Entries are missing.
Check the Environment ID. Content in master is not in a staging environment.
Writes are refused.
The token has read scope only. Create one with manage scope.
Which region do I use?
Enter global, or eu if your space is on Contentful's EU data region.
General steps for any connector are in Connect an integration. Keys and secrets are covered in Secrets and API keys. To remove it, see Disconnect an integration.
What Swarmz can do with it
Content model awareness
The AI reads your Contentful content types and generates typed queries that match your actual schema, no guessing field names.
Content rendering
Generate React components that render rich text, embedded assets, and linked entries from your Contentful space.
Preview mode
Build preview interfaces that show draft content before publishing. The AI configures the Contentful Preview API with proper authentication.
More in Content & CMS
Still stuck?
A person from Swarmz Support can take a look.