Using the Node Builder (AI Generate)

Overview

Flow Builder at the Flow Builder includes an AI-powered node generation feature that helps you build nodes faster. Instead of writing prompts and configuring transitions manually, you can describe what you want and let the AI generate the node configuration for you.

The Sparkle Button

On any Conversation node, you will see a sparkle icon in the node toolbar. Clicking this button opens the AI Generate panel, where you can describe the node's purpose in plain language.

For example, you might type:

Ask the caller for their appointment date and time preference.
Only allow weekday slots between 9am and 5pm.
If they ask for a weekend, politely explain that weekend appointments are not available.

The AI analyzes your description and generates:

  • A structured system prompt optimized for the node
  • Suggested transition conditions based on likely conversation outcomes
  • Appropriate node settings

Review the generated output and adjust anything that does not fit your use case before saving.

Improve Prompt

Already have a prompt written? The Improve Prompt feature rewrites it into a more structured, task-based format. Click the improve button (magic wand icon) inside a Conversation node's prompt editor.

The AI performs a task-based rewrite that:

  • Restructures vague instructions into clear, ordered tasks
  • Adds explicit boundaries and constraints
  • Formats the prompt for consistency across your flow
  • Optimizes wording for better LLM comprehension

Before

You're a dental receptionist. Help people book appointments.
Be nice and professional. Ask for their info.

After

You are a scheduling assistant for Acme Dental.

Your task:
1. Greet the caller professionally.
2. Ask for their full name.
3. Ask for their preferred appointment date and time.
4. Only offer weekday slots between 9:00 AM and 5:00 PM.
5. Confirm the appointment details before proceeding.

Constraints:
- Do not schedule same-day appointments.
- If the caller requests a weekend, explain that only weekday slots are available.
- Keep responses concise and professional.

The improved version gives the LLM clearer direction, which results in more consistent and predictable agent behavior.

Revert Option

Every AI generation and prompt improvement is reversible. After the AI modifies your prompt or generates node content, a Revert button appears. Click it to restore the previous version instantly.

This makes it safe to experiment. Try the AI-generated version, test it, and revert if the original worked better. There is no risk of losing your work.

AI Suggest for Transitions

The AI Generate feature also suggests transition conditions. When you click the sparkle button on a Conversation node, the AI reads your prompt and proposes transitions that cover the most likely conversation paths.

For a scheduling node, it might suggest:

  • "The caller provides a valid date and time"
  • "The caller wants to cancel an existing appointment"
  • "The caller asks to speak with a human"

You can accept, modify, or remove any suggested transition before saving.

When to Use AI Generate

ScenarioRecommended Approach
Starting a new node from scratchUse AI Generate to scaffold the prompt and transitions
Refining an existing promptUse Improve Prompt for a task-based rewrite
Unsure what transitions to addUse AI Suggest to get starting suggestions
Quick prototypingGenerate nodes rapidly, then refine manually

Tip: AI Generate works best when you provide specific context about the business, constraints, and desired behavior. The more detail you give, the better the output.


Was this article helpful?