Entries
Entries is the Strapi component that works with the entries in your Strapi content manager: blog articles, product pages, news items or any other content type you have defined. With it you can create an entry, look up one entry or the list of entries of a content type, change it and delete it.
It is useful when your website content comes from another process, for example an AI agent that writes articles, or when you want to use Strapi content somewhere else, such as a newsletter or a report.
When to use it
- An AI agent writes an article and you want to save it as a new blog entry in Strapi.
- Every week you want to send a newsletter with the latest news published on your website.
- You need to update your website’s product pages when they change in another system.
- An agent answers questions about your content and needs to look up Strapi entries.
Configuration
You need a Strapi CMS credential with the address of your Strapi installation and an API Token created in the Strapi admin panel with access to the content types you want to use. See Credentials.
| Field | What it does |
|---|---|
| Credential (required) | The Strapi CMS credential used to access your Strapi. |
| Operation (required) | What the component does. See Operations. |
| Content Type (required) | The content type to work with, for example articles. The list loads when you choose the credential, with your Strapi’s content types. |
| Item (required) | Only in Create Entry and Update Entry. The entry’s content. Connect it from another component that delivers the entry’s fields with the same names they have in Strapi, for example title and content. |
| Entry ID (required) | Only in Update Entry, Delete Entry and Get Entry. The entry’s identifier in Strapi (its documentId). |
| Top | Only in Get All Entries. The maximum number of entries returned; default: 50. With 0 every entry is returned. |
Operations
| Operation | What it does |
|---|---|
Create Entry | Creates a new entry in the chosen content type with the fields in Item. |
Update Entry | Changes the fields of an existing entry with those in Item. |
Delete Entry | Deletes the entry with that identifier. |
Get Entry | Returns an entry’s details. |
Get All Entries | Returns the entries of the chosen content type, up to the number set in Top. |
Output
The Data output returns the fields of the entry you worked with, including its identifier (documentId), as text; fields that hold an object or a list come as JSON text. With Get All Entries you get one item per entry. Delete Entry returns a confirmation.
If the operation cannot be done, for example because the entry does not exist, the Data output contains an error field with the reason instead of stopping the flow. Check it before you continue.
You can connect the result to an agent, an email or a spreadsheet. The component can also be connected to an Agent as a tool, so the agent looks up or creates entries when it needs to. See Tool Mode.
Example
A travel agency publishes on its blog the articles an agent writes.
- An agent writes the article and delivers the title and text as
titleandcontentfields. - Add Entries with the
Create Entryoperation and the agency’s Strapi CMS credential. - In Content Type choose
articles. - Connect the agent’s output to Item.
- Keep the
documentIdfrom the Data output so you can update the article later.
Good practices
- The field names in Item must match those of the content type in Strapi. Check the content type in the Strapi panel before building the flow.
- Use Top in
Get All Entriesso you don’t fetch more entries than you need.