Strapi Bot Lookup (Stage) icon

Strapi Bot Lookup (Stage)

Fetch a single bot by ID or search/list bots with filters, populate, pagination, sort, and field selection

Get by ID

AI-generated

Summary

Fetch a single bot by ID from Strapi, optionally populating related resources and handling not‑found cases gracefully.

Inputs

  • collectionPath — REST path for bots collection (e.g. /api/bots)
  • botId — Bot ID to search for in Strapi (can be taken from input via expression)
  • continueOnNotFound — Whether to continue execution and output empty object when bot is not found instead of throwing an error
  • populateGetById — Include related data (Channel, Funnel, Geo, etc.) in the response

Output shape

array of items, each with a json field containing the result (bot data, not‑found indicator, or error)

When a bot is not found and continueOnNotFound is true, the item’s json will be {found:false}; when an error occurs and continueOnFail is true, json will be {error: '<message>'}; otherwise the operation throws.

Examples

Example 1: Lookup a bot by ID passed from previous step

Bot ID = {{$json.id}}, Continue On Not Found = true, Populate = funnel,geos,channels

Example 2: Search for a bot that does not exist

Bot ID = 12345, Continue On Not Found = true

Example 3: Error when bot not found and continueOnNotFound disabled

Bot ID = 99999, Continue On Not Found = false

Links

Discussion