# Troubleshoot Agent Studio errors

Use this document to troubleshoot Agent Studio errors you may encounter.

# Arithmetic errors

Genies sometimes produce unreliable results when performing mathematical calculations, particularly in the following scenarios:

  • Multi-step arithmetic operations
  • Calculations involving multiple numbers
  • Financial computations requiring precision
  • Expense validations and comparisons

For example, your genie evaluates expense compliance and incorrectly flags meal expenses as exceeding a $100 daily limit:

  • October 28 = $13.69 total: Incorrectly flagged as exceeding $100 limit
  • October 30 = $16.58 total: Incorrectly flagged as exceeding $100 limit
  • October 31 = $29.74 total: Incorrectly flagged as exceeding $100 limit

This occurs because LLMs can struggle with precise arithmetic, especially when multiple calculations are required.

# Arithmetic error solution

Provide your genie with a Python code execution skill to handle mathematical operations reliably. This solution uses the following workflow:

  • Genie identifies when mathematical calculations are needed
  • Genie calls the Python execution skill
  • Python performs the calculation with precision
  • Genie receives and uses the accurate result

Complete the following steps to use a Python code execution skill:

1

Import and enable the prebuilt Python execution skill (opens new window) for your genie.

2

Test the skill to ensure it performs as expected with your workflow.

Python code interpreterPython code interpreter

3

Adjust the prompt for your genie and skill as needed.

Alternatively, you can create a new Python execution skill with Python Snippets by Workato and refer to the prebuilt Python execution skill (opens new window) as a template.


Last updated: 12/16/2025, 2:18:47 AM