Skip to content

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.

FieldWhat 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).
TopOnly in Get All Entries. The maximum number of entries returned; default: 50. With 0 every entry is returned.

Operations

OperationWhat it does
Create EntryCreates a new entry in the chosen content type with the fields in Item.
Update EntryChanges the fields of an existing entry with those in Item.
Delete EntryDeletes the entry with that identifier.
Get EntryReturns an entry’s details.
Get All EntriesReturns 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.

  1. An agent writes the article and delivers the title and text as title and content fields.
  2. Add Entries with the Create Entry operation and the agency’s Strapi CMS credential.
  3. In Content Type choose articles.
  4. Connect the agent’s output to Item.
  5. Keep the documentId from 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 Entries so you don’t fetch more entries than you need.