Read the parent of the record that triggered an Agent

Look up a directly linked parent record so later Agent steps can use its context.

Use a parent lookup when an Agent needs information from the record that owns a request, task, or other child record. For example, an Agent triggered by a new request can read its linked project before drafting a triage summary.

Look up the linked parent

  1. Verify that the trigger table has a parent table and that the sample child record is linked to a parent. For this example, Projects is a parent table of Requests and the sample request belongs to a project. The Agent owner needs access to read the records.
  2. Open your background Agent in Build. Configure a record trigger on the child table. In this example, choose Record created and select Requests.
  3. Add a Connector action after the trigger. In Connector, choose Nixa Workspace. In Action, choose Find workspace data.
  4. In Inspection target, select Parent of the triggering record. In Target table, choose Projects. Wait for the design to save.
  5. In a later step, use that result where you need the parent’s context. For example, ask an Agent reasoning step to include the linked project’s name in the triage summary when a parent is available.

Verify the parent returned

With the Agent off, use Test if available. Open the resulting run in Runs, confirm which sample record was used, and compare the lookup result with its linked parent. If the step reports no matching readable parent, check the parent link on that sample, the selected target table, and the Agent owner’s read access.

The lookup follows a direct parent link into the configured table. If multiple readable parent records match that table, the step reports an error. Before retrying, review the parent links or select the intended parent table.

Review an Agent run

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?