Skip to content

Run

Running a FlowΒΆ

Once we have setup the models, agents, and connections in the flow, we open the Edit Flow modal to specify which connections should be used to initiate the conversation, specify any additional requirements that might be needed. Let's also give the flow a descriptive name and maybe a short description.

Edit flow order Edit flow

Troubleshooting ErrorsΒΆ

During the flow execution, you might encounter errors that can interrupt the conversation. Here are some common errors and solutions to help you resolve them.

Waldiez Error Preview Waldiez Error Dark Preview

Troubleshooting Common ErrorsΒΆ

Note

If an error persists, or new packages were installed, you might need to restart the kernel to apply the changes. If this does not resolve the issue, or you need further assistance, please reach out to us, we are more than happy to help!

ValidationError: Agent Not ConnectedΒΆ

Description: This error occurs when an agent in the flow is not connected to any other node, causing the flow to be incomplete.

  • Error Message:
  ValidationError: 1 validation error for [Flow Name]
  Value error, Agent does not connect to any other node.
  • Solution:
    • Identify the agent mentioned in the error (e.g., Planner).
    • Connect this agent to another node in the flow to complete the sequence.
    • Re-run the flow after making the connection.

Autogen Error Preview Autogen Error Dark Preview

OpenAI Error: Missing API KeyΒΆ

Description: This error appears when the OpenAI API key is not set, preventing the tool from accessing OpenAI's services.

  • Error Message:

    OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable.
    
  • Solution:
    • Make sure you have set the API key in the model configuration.
    • Restart the flow after setting the API key to ensure it is recognized.

Description: Errors related to skills or custom functions can occur due to incorrect function names, missing environment variables, or syntax errors in the code.

Autogen Error Preview Autogen Error Dark Preview

Make sure to check the following:

  • Function Name: In skills, ensure the function name in the code matches the skill name.
  • Syntax Errors: Review the code for any syntax errors or typos that may cause the function to fail.
  • Environment Variables: If environment variables are required, ensure they are correctly set in the skill configuration.
  • Logs: Check the logs for detailed error messages that can help identify the issue.
General Debugging TipsΒΆ
  • Check Connections: Ensure all nodes are connected correctly in the flow. Unconnected nodes can interrupt the flow sequence.
  • Verify Configuration: Review the configuration for each agent and node. Ensure all fields are populated with valid data, especially required fields like API keys.
  • Restart and Retry: After making changes to resolve errors, restart the flow to test if the issue is resolved.
  • Review Logs: Check the logs for detailed error messages or warnings that can help identify the root cause of the issue.