Skip to content
AskElephant Knowledge Base home

Loop Prompt

Run the same AI prompt separately for every item in a list, such as a batch of meetings or contacts, and collect all the results together.

Loop Prompt node in the workflow builder

What It Does

Takes a list of objects (meetings, calendar events, people, or companies) and runs your prompt once per item, up to 100 objects. Each run can reference that item's own properties in the prompt text. The results are combined into a single output string.

When To Use It

Use this for bulk work you would otherwise have to repeat by hand, like generating a one-line summary for every meeting in a list or drafting a personalized note for each contact in a group. If you only need to run a prompt once, use Run Prompt instead.

Configuration

Configure the node with these settings:

Field

What it controls

Related Object Type

The kind of objects to process: meeting, calendarEvent, person, or company. Required.

Related Objects

The specific objects to loop over, up to 100. Required.

Loop Prompt

The prompt to run for each item. You can reference each object's properties directly, for example {{meetingTitle}}. Required.

Model

Which LLM runs each iteration. Choose default, lite, creative, analytical, or a specific model. Required, defaults to default.

Enabled Tools

AI tools available to each iteration, such as CRM Context or Past Meetings, giving each run extra context. Required, defaults to none.

Outputs

The node passes these values downstream. Check the Outputs tab on the configured node to confirm exact paths.

Variable

Type

Description

Example

aiCompletions

string

The results of the loop

{{nodeId.aiCompletions}}

Example Workflow

Pull a list of this week's demo calls with Search Past Meetings, then use Loop Prompt to generate a short recap of each one, and send the combined recap in a single Send Notification to the sales team.

  • Run Prompt

  • Filter Prompt

  • Search Past Meetings

Need More Help?

Reach the AskElephant support team by:

  • clicking the Support tab on the right side of your screen,

  • emailing [email protected],

  • or using @askelephant support in your dedicated Slack channel.