Problem Solving

Troubleshooting Guide

Solutions to common workflow issues


Table of Contents
  1. Quick Troubleshooting Checklist
  2. Common Mistakes to Avoid
  3. Node Configuration Issues
  4. Error Handling
  5. Variable Reference & Template Syntax
  6. Debugging Workflows
  7. Workflow Execution Problems
  8. Workflow Won’t Run
  9. Real-World Examples from Tutorials
  10. Getting Help

Quick Troubleshooting Checklist


Common Mistakes to Avoid

What to Watch Out For

Missing Connections

  • Every node needs proper input/output connections
  • Disconnected nodes won't execute
  • Check for loose or missing connections

Incorrect Data Types

  • Ensure output types match input expectations
  • Use conversion nodes when needed

Missing Required Parameters

  • Configure all required fields and relevant parameters for your use case in each node
  • Workflows won't run with missing required fields or may generate inaccurate results with incomplete configuration
Quick Fix: Most workflow errors can be identified by looking for red indicators on nodes or broken connection lines.

Node Configuration Issues

Configuration Problems & Solutions

Incorrect node configuration is one of the most common causes of workflow failures. Here are specific configuration issues and how to fix them:

LLM Node Configuration Errors

File Variable Naming Issues

Problem: File variable configured incorrectly causes "Source '[entered source value]' not found" errors

Critical Syntax:
  • Correct: input.source_data_1 (with input. prefix)
  • Wrong: source_data_1 (missing prefix)
  • Wrong: {{input.source_data_1}} (don't use curly braces in file_variables field)
  • Multiple Sources: Use comma as delimiter: input.source_data_1, input.source_data_2

Where to check:

  • LLM node configuration → "Attached Files" field
  • Agent configuration → File variable key must match (e.g., source_data_1)
  • All LLM nodes in workflow should use consistent naming

Solution: Always use input.source_data_1 format in LLM node file_variables field

Model Selection

Important: While a model is selected by default, you should choose the appropriate model for your specific use case

Best Practices:

  • Review the default model and select one that matches your task requirements
  • Consider model capabilities (reasoning, speed, cost) for each node's purpose
  • Different nodes can use different models optimized for their specific tasks

Temperature Settings

What it does: Controls randomness in AI responses

  • Low (0.0-0.3): Deterministic, consistent - use for data extraction and analysis
  • Medium (0.4-0.7): Balanced - use for general tasks
  • High (0.8-1.0): Creative, varied - use for content generation and brainstorming
Best Practice: Use lower temperatures (0.1-0.2) for extraction tasks and higher temperatures (0.8-1.0) for creative planning, as shown in the First Workflow Tutorial.

Variable Assignment Node Issues

Source Field Errors

Problem: "Variable not found" or empty variables downstream

Correct Format:

  • llm_node_name.response (for LLM node output)
  • decision_tree_node.category (for Decision Tree classification)
  • loop_node.complete (for Loop node aggregated results)

Variable Naming Rules

Valid: Letters, numbers, underscores only

  • evaluation
  • evaluation_questions
  • project_plan_2024

Invalid:

  • evaluation-questions (hyphens not allowed)
  • project plan (spaces not allowed)
  • evaluation.questions (dots reserved for node.property syntax)

Return Response Node Problems

Template Syntax Errors

Problem: Variables show as empty or template doesn't render

Correct Template Syntax:

{{evaluation}},
{{evaluation_questions}},
{{project_plan}}

Common Mistakes:

  • Typo in variable name: {{evalution}} instead of {{evaluation}}
  • Missing curly braces: evaluation instead of {{evaluation}}
  • Variable not saved: Referencing a variable that was never created with Save Variable node

Response Type Mismatches

Problem: Output format doesn't match response type setting

  • Text: Use for plain text or markdown output
  • JSON: Use when returning structured data - template must produce valid JSON
Pro Tip: Test your workflow incrementally after configuring each node. This helps identify configuration issues immediately rather than debugging the entire workflow later.

Error Handling

Handling Errors Gracefully

Proper error handling ensures your workflows handle unexpected situations gracefully and provide useful feedback.

Error Handling Strategies

1

Try

Attempt operation

2

Catch

Handle errors

3

Finally

Cleanup actions

Error Types

  • Validation Errors: Invalid input data
  • Processing Errors: Node execution failures
  • Timeout Errors: Operations taking too long

Recovery Options

  • Retry: Attempt the operation again
  • Log and Continue: Record error and proceed
  • Fail Gracefully: Stop execution with informative message
Best Practice: Always include error handling for external API calls and user input validation.

Variable Reference & Template Syntax

Syntax Rules & Common Mistakes

Understanding when and how to reference variables is critical for workflow success. Different contexts require different syntax:

Syntax Quick Reference

Context Correct Syntax Example Wrong Syntax
File Variables (LLM Node) input.source_data_1 Attached Files field: input.source_data_1 {{input.source_data_1}}
source_data_1
Save Variable Source node_name.response Source: llm_1.response {{llm_1.response}}
llm_1
Saved Variables in Templates {{variable_name}} Prompt: Analyze: {{evaluation}} evaluation
{{evaluation
Node Outputs in Templates {{node_name.response}} Template: {{llm_1.response}} llm_1.response
{{llm_1}}
If/Else Conditions variable_name > 80 Condition: confidence > 0.8 {{confidence}} > 0.8
"confidence" > 0.8
Agent File Variable Key source_data_1 Key: source_data_1 (without input.) input.source_data_1
{{source_data_1}}

Common Syntax Mistakes

Mistake 1: Using Curly Braces in Wrong Context

Wrong:

In LLM file_variables field: {{input.source_data_1}}

In Save Variable source field: {{llm_1.response}}

In If/Else condition: {{score}} > 80

Correct:

In LLM file_variables field: input.source_data_1

In Save Variable source field: llm_1.response

In If/Else condition: score > 80

Rule: Only use {{}} in template fields (prompts, Return Response templates)

Mistake 2: Missing Input Prefix for Files

Wrong:

LLM Node file_variables: source_data_1

Result: "File not populated" error

Correct:

LLM Node file_variables: input.source_data_1

Note: Agent configuration uses source_data_1 (without "input."), but LLM nodes use input.source_data_1

Mistake 3: Variable Name Typos

Problem: Variable names in templates must match EXACTLY what was saved

Common Typos:
  • {{evalution}} instead of {{evaluation}}
  • {{project-plan}} instead of {{project_plan}}
  • {{evaluation_question}} instead of {{evaluation_questions}} (missing 's')

Solution: Copy variable names directly from Save Variable nodes to avoid typos

Mistake 4: Wrong Node Output Property

Different node types have different output properties:

Node Type Output Property Example
LLM Node .response llm_1.response
Decision Tree Node .category classifier_1.category
Loop Node .complete loop_1.complete
Save Variable Node Variable name directly {{evaluation}} (not save_1.evaluation)
Learn More: See the Save Variable Node documentation for detailed examples of variable referencing.

Debugging Workflows

Finding and Fixing Issues

Debugging Techniques

  1. Test Incrementally: Run your workflow after adding each node
  2. Check Node Status: Look for error indicators on individual nodes
  3. Review Execution Logs: Examine detailed logs for error messages
  4. Isolate Problem Areas: Copy workflow and run only sections that work up to the point of failure
  5. Verify Data Flow: Check that data is being passed correctly between nodes

Common Debug Patterns

Inspection Nodes

Add debug nodes to inspect data

Log intermediate results
Verify data structure
Track execution flow

Test Data

Use controlled inputs for testing

Known input values
Expected outputs
Edge case scenarios
Debugging Tip: Start with the simplest possible workflow and add complexity only after confirming each part works correctly.

Workflow Execution Problems

Running & Executing Workflows

Problems that occur when trying to execute your workflow:

Edit vs Run Mode Issues

Understanding the Modes

Edit Mode

Build and configure your workflow

Add and configure nodes
Draw connections
Configure agent settings
Cannot execute workflow

Run Mode

Execute and test your workflow

Upload files
Run agent
View execution logs
Cannot edit nodes

Problem: "Why can't I execute?" or "Why can't I edit?"

Solution:

  1. To Execute: Save workflow → Switch to Run mode → Select agent → Click Run Agent
  2. To Edit: Switch to Edit mode → Make changes → Save → Switch back to Run mode
  3. Important: Always save before switching modes
Mode Reference: See Running Your Workflow for detailed steps on mode switching and execution.

Agent Configuration Problems

Missing Agent Setup

Problem: Workflow won't run, no agent in dropdown

Solution - Create Agent:

  1. Switch to Edit mode
  2. Locate agent configuration section (below Node Palette on left)
  3. Set dropdown to "(New agent)"
  4. Configure:
    • Name: Descriptive name (e.g., "RFI-RFP-Agent")
    • Model: Select from dropdown
    • Temperature: 0-1 (default: 0)
    • Variables: Add file variables if workflow uses files
  5. Click "Save"

Variable Type Mismatches

Problem: File upload doesn't work or file not found

Cause: Agent variable configured as "Text" instead of "File"

Solution:

  • Agent configuration → "+ Add Variable"
  • Change type from "Text" to "File"
  • Set key to match file variable name: source_data_1 (without "input." prefix)
  • Save agent configuration

File Variable Key Naming

Critical: Agent and LLM nodes use different naming conventions:

Location Syntax Example
Agent Configuration → Variable Key source_data_1 No "input." prefix
LLM Node → file_variables input.source_data_1 With "input." prefix

File Upload Issues

File Limits

  • Max files per LLM node: 5 files
  • Supported formats: Many file types including PDF, Word, Excel, CSV, images (for vision models), text files, and more
  • Special handling: CSV/Excel files enable data analysis capabilities

File Not Reaching Node

Problem: File uploaded but LLM node can't access it

Checklist:

  1. Agent variable type is "File" (not "Text")
  2. Agent variable key matches: source_data_1
  3. LLM node file_variables uses: input.source_data_1
  4. File was uploaded in Run mode (not Edit mode)
  5. All LLM nodes in workflow use same file variable
File Flow: Files flow from agent upload → all LLM nodes that reference input.source_data_1. Each LLM node receives the same uploaded file(s).

Workflow Won’t Run

Execution Issues

Checklist for Non-Running Workflows

  • All nodes are connected properly
  • Required parameters are filled in
  • No disconnected nodes exist
  • Data types match between connections
  • No circular dependencies present
  • Workflow has been saved
Quick Start: Try running one of the example workflows to verify your environment is set up correctly.

Real-World Examples from Tutorials

Common Problems from Tutorial Workflows

These are actual issues users encounter when following the First Workflow Tutorial. Each example includes the problem, cause, and solution:

Example 1: Empty Variables in Third LLM Node

Problem:

"My third LLM node (rfi_rfp_project-plan) shows empty variables for {{evaluation}} and {{evaluation_questions}}"

Cause: Save Variable nodes (Steps 3 and 5 in tutorial) were skipped or misconfigured

What Happened:

  • User configured the three LLM nodes correctly
  • But forgot to add Save Variable nodes between them
  • Variables evaluation and evaluation_questions were never created
  • Third LLM prompt references variables that don't exist

Solution:

  1. Add Save Variable node after first LLM node (rfi_rfp_data_extraction)
    • Source: rfi_rfp_data_extraction.response
    • Variable name: evaluation
  2. Add Save Variable node after second LLM node (rfi_rfp_questionnaire)
    • Source: rfi_rfp_questionnaire.response
    • Variable name: evaluation_questions
  3. Connect nodes properly: LLM → Save Variable → Next LLM
  4. Verify variable names match EXACTLY in prompt template
Tutorial Reference: Step 3 and Step 5 in the First Workflow Tutorial

Example 2: File Not Found in Third LLM Node

Problem:

"The rfi_rfp_project-plan node shows 'file not populated' in execution logs"

Cause: File variable inconsistency in Step 6 of the tutorial

What Happened:

  • First two LLM nodes correctly use input.source_data_1
  • Tutorial Step 6 says to use source_data_1 (missing input. prefix)
  • This inconsistency causes the third node to not receive the uploaded file

Solution:

  • Correct configuration: Use input.source_data_1 in ALL three LLM nodes
  • Open third LLM node (rfi_rfp_project-plan)
  • Change file_variables from source_data_1 to input.source_data_1
  • Save workflow and test again
Tutorial Note: Step 6 has this inconsistency. Always use input.source_data_1 format for file variables in LLM nodes.

Example 3: Workflow Won't Execute

Problem:

"When I click Run Agent, nothing happens" or "Can't find the Run Agent button"

Cause: Still in Edit mode or workflow not saved

What Happened:

  • User built the workflow in Edit mode
  • Tried to execute without switching to Run mode

Solution:

  1. Click the "Save" button (top of screen)
  2. Switch from "Edit" to "Run" mode using the toggle
  3. Left panel transforms to show agent interface
  4. Select your agent from dropdown (RFI-RFP-Agent)
  5. Upload your RFP/RFI document using the file attachment button
  6. Click the blue "Run Agent" button
Tutorial Reference: Running Your Workflow section explains the mode switching process

Example 4: Return Response Shows Nothing

Problem:

"Workflow completes but Return Response node output is empty or shows raw variable names"

Cause: Variable names in template don't match saved variable names

What Happened:

  • User typed {{evalution}} instead of {{evaluation}} (typo)
  • Or used {{project-plan}} with hyphens instead of {{project_plan}} with underscores
  • Variable names must match EXACTLY (case-sensitive, spelling, punctuation)

Solution:

  1. Check Return Response node template matches these EXACT names:
    • {{evaluation}}
    • {{evaluation_questions}}
    • {{project_plan}}
  2. Verify each Save Variable node uses these exact names
  3. Look for typos: missing letters, extra spaces, wrong punctuation
  4. Copy-paste variable names from Save Variable nodes to avoid typos
Pro Tip: Copy variable names directly from Save Variable nodes instead of retyping them in templates. This prevents typos and ensures exact matches.

Getting Help

When You Need Additional Support

Before Contacting Support

  1. Review this troubleshooting guide
  2. Check the Core Concepts documentation
  3. Try running example workflows to isolate the issue
  4. Collect error messages and execution logs
  5. Note the steps that led to the problem

Information to Provide

When requesting help, include:

1. Workflow Context

  • Description: What you're trying to accomplish
  • Tutorial/Example: Which tutorial or example you're following (if any)
  • Workflow JSON: Export your workflow using the Import/Export feature
  • Node count: How many nodes in your workflow

2. Reproduction Steps

  • Exact steps taken before the issue occurred
  • Which node the issue occurs at
  • Whether issue is consistent or intermittent
  • What you expected to happen vs. what actually happened

3. Error Information

  • Error messages: Exact text from Activity log
  • Execution Logs: Full logs from ">>" modal (copy/screenshot)
  • Failed node name: Which node shows error
  • Error timing: When in execution the error occurs

4. Configuration Details

  • Screenshots: Workflow canvas showing all nodes and connections
  • Node configuration: Screenshot of failed node's settings panel
  • Agent configuration: Agent settings (model, temperature, variables)
  • File details: If using files, what type/size/format

5. Environment

  • Browser and version
  • When the issue started (new workflow or existing that stopped working)
  • Whether this workflow worked before
Export Workflow: To export your workflow JSON, use the Import/Export feature in Agent Builder. This allows support to recreate your exact setup and identify the issue faster.

Additional Resources

Beta Feature: As Agent Builder is in beta, we're continuously improving it. Your feedback on issues helps us make it better for everyone!

Back to top

Copyright © 2025 Ask Sage Inc. All Rights Reserved.