When building AI applications, you often need multiple steps working together - like chaining multiple AI models, processing data, or calling external services. While single Prompts work well for simple tasks, complex workflows need a more structured approach.

What are Prompt Chains?

Prompt Chains let you connect three types of nodes to build your AI workflow:

  1. Prompt: Run LLM interactions
  2. Code: Add custom logic
  3. API: Connect external services via HTTP API

Each node’s output feeds into the next, creating a seamless flow of data.

Available nodes

Create your first chain

1

Initialize your chain

Start from the Start node by dragging to create your first connection.

2

Choose node functionality

Configure the type and settings for your new node based on your requirements.

3

Expand the workflow

Connect additional nodes by dragging from the output handles to create new steps.

4

Optimize connections

Modify the flow by adjusting node connections to achieve your desired logic.

5

Run a test

Try out your chain in the playground to verify its behavior

Ensure each node’s output matches the input requirements of connected nodes.

Version and deploy

Create versions to test or deploy your chain:

  1. Click Save in the top right
  2. Add an optional description
  3. Click Update

View all versions using the icon

Next steps:

Learn more about testing prompts or check our SDK documentation.