Skip to main content
Master the tools and techniques for validating, testing, and debugging your Flow Agents to ensure they work perfectly in production.

Validation System

Hamsa’s built-in validation system checks your flow for errors before you can save or deploy.

Real-Time Validation

The validation system runs continuously as you build:

Validation Indicator

Validation Categories

1. Workflow-Level Errors

Missing Start Node:
Empty System Instructions:

2. Node-Level Errors

Empty Message:
Missing Tool Selection:
Invalid Phone Number:
Missing Agent Selection:

3. Variable Errors

Invalid Variable Name:
Missing Variable Name:
Short Description (Conversation Nodes):
Missing Extraction Prompt (Conversation Nodes):
Missing JSON Path (Tool Nodes):

4. Transition Errors

Empty Transition Description:
Missing Target Node:
No Fallback Transition (Warning):

5. Global Node Errors

Missing Global Condition:
Extracted Variable in Global Condition:

6. Tool Override Errors

Empty Parameter Override:
Empty Header Override:

Validation Popover

The validation popover provides detailed information about all errors and warnings.

Opening the Validation Popover

Popover Contents

Using the Focus Button


Testing Strategies

1. Development Testing

Test as you build:

2. Call Testing (Test Mode)

Use the built-in call testing feature:

3. Live Call Logs

Real-time debugging during test calls:

Debugging Tools

1. Node Highlighting

2. Variable Inspector

3. Transition Inspector


Common Issues and Solutions

Issue 1: Transition Never Fires

Symptoms:
  • Expected transition doesn’t trigger
  • Conversation stuck or goes to wrong path
Debugging Steps:

Issue 2: Variable Not Extracted

Symptoms:
  • Variable shows as undefined or null
  • Template {{variable_name}} renders as empty
Debugging Steps:

Issue 3: Global Node Not Triggering

Symptoms:
  • Say “I want an agent” but transfer doesn’t happen
  • DTMF press doesn’t trigger global node
Debugging Steps:

Issue 4: Tool Call Fails

Symptoms:
  • Tool node doesn’t execute
  • Error in call logs
  • Flow doesn’t proceed
Debugging Steps:

Issue 5: Message Not Speaking as Expected

Symptoms:
  • Message renders incorrectly
  • Variables show as {{variable_name}} instead of value
  • Message skipped entirely
Debugging Steps:

Debugging Workflows

Workflow 1: New Flow Not Working

Workflow 2: Existing Flow Broke After Changes

Workflow 3: Production Issue Reported


Testing Checklist

Before deploying to production, test:

Basic Functionality

  • Happy path works end-to-end
  • All nodes are reachable
  • All transitions fire correctly
  • All variables extract properly
  • All tools execute successfully
  • All global nodes trigger appropriately

Error Handling

  • Invalid inputs handled gracefully
  • Missing variables have fallbacks
  • Tool failures don’t crash flow
  • Timeouts handled appropriately
  • User confusion leads to help or transfer
  • Max retry limits work correctly

Edge Cases

  • Empty user input
  • Very long user input (> 1 minute)
  • Rapid repeated inputs
  • Interrupting agent mid-sentence
  • Long silences (timeout)
  • DTMF during voice input
  • Switching between voice and DTMF

User Experience

  • Messages are clear and concise
  • No awkward pauses or delays
  • Confirmations for critical actions
  • Easy escape hatches (agent, menu, end)
  • Helpful error messages
  • Natural conversation flow

Validation

  • No validation errors
  • All warnings addressed or acknowledged
  • All nodes have names
  • All transitions have descriptions
  • All variables follow naming convention

Troubleshooting Resources

Built-in Help


Quick Reference

Validation Error Quick Fixes

Debugging Commands


Next Steps

Best Practices

Learn flow design patterns and optimization

Variables Guide

Master variable usage and troubleshooting

Transitions

Deep dive into transition logic and debugging

Node Reference

Complete node documentation and examples