AltScore
Builder Tools

Test Flow

The Test Flow tool allows you to validate your flow for errors and preview it in different channels (WhatsApp, Web) before publishing to production.

Accessing Test Flow

Click the Test Flow button in the top bar to open the testing dialog.

Validation

Before testing, the system automatically validates your flow:

Validation Process

  1. All nodes are checked for configuration errors
  2. Connection rules are verified
  3. Required fields are validated
  4. Incompatible node combinations are detected

Error Panel

If validation finds issues, an error panel appears at the bottom of the canvas showing:

Error TypeColorDescription
System ErrorsRedCritical issues that prevent the flow from running
Node ErrorsOrangeConfiguration problems in specific nodes
WarningsYellowNon-blocking issues that should be reviewed

Fix with AI

For each error, you can click Fix with AI to have the AI assistant suggest solutions. You can also click Fix All with AI to address all errors at once.

Testing Channels

WhatsApp Testing

To test your flow via WhatsApp:

  1. Click Test Flow
  2. Select WhatsApp as the channel
  3. Choose a sender (phone number associated with the flow)
  4. Enter your phone number with country code
  5. Scan the generated QR code or click the link

The flow will send a test message to your WhatsApp, allowing you to experience the flow as a real user would.

Web Testing

To test your flow in the web chatbot:

  1. Click Test Flow
  2. Select Web as the channel
  3. Click Open Preview or copy the URL

The preview URL includes test parameters:

{domain}/{tenant}/{alias}?version={v}&status={s}

Parameters:

  • version - The specific version being tested
  • status - The flow status (draft, active)

Recursive Verification

The test tool performs recursive verification to check:

Incompatible Nodes

Some nodes are not compatible with certain channels. For example:

  • Product List nodes are not compatible with web channel

If incompatible nodes are detected, a warning is displayed.

Jump-To Analysis

When your flow uses Jump-To nodes that link to other flows:

  1. The system fetches related flows
  2. Each related flow is also checked for compatibility
  3. The entire flow chain is verified

Test URL Features

Copy URL

Click the Copy button to copy the test URL to your clipboard. Share this with team members for collaborative testing.

Open in New Window

Click Open to launch the test in a new browser tab, allowing you to interact with the flow without leaving the editor.

Best Practices

Before Testing

  • Ensure all required node configurations are complete
  • Check that variables are properly initialized
  • Verify conditional logic paths

During Testing

  • Test all possible user paths
  • Try edge cases (invalid inputs, unexpected responses)
  • Verify variable values are captured correctly

After Testing

  • Review any unexpected behavior
  • Check the flow from start to end
  • Test on actual devices (mobile, desktop) for web flows

Troubleshooting

Validation errors persist

If errors don't clear after fixing:

  • Save the flow manually
  • Refresh the page
  • Check if the fix was actually applied

Test URL doesn't work

Check that:

  • The flow is saved (not just modified locally)
  • The alias is correctly configured
  • Your account has permission to access test URLs

WhatsApp test not received

Verify:

  • The phone number includes country code
  • The sender is correctly configured
  • WhatsApp integration is active for your account

Web preview shows wrong content

  • Clear browser cache
  • Ensure you're using the correct version parameter
  • Check if web configuration is properly saved