Code Interpreter

Adding Code Interpreter to Your Agent

To enable your agent to code interactive graphs and small applications, you can add the Code Interpreter tool during the agent creation process or when editing an existing agent.

During agent creation:

  • In the Tools section (located in the Knowledge & Tools page), you'll find the Code Interpreter option with a terminal icon.

  • Check the "Code Interpreter" checkbox to give your agents the ability to code interactive graphs and small apps.

  • This tool allows your agent to execute Python code, create visualizations, and build interactive applications.

When editing an existing agent:

  • Click the three dots on your agent's card and select "Edit Agent"

  • Navigate to the Tools section

  • Toggle the Code Interpreter option on or off as needed

Code Interpreter Capabilities: Once enabled, your agent will be able to:

  • Create interactive charts, graphs, and visualizations

  • Build live applications that run directly in the chat interface

  • Generate complete HTML, CSS, and JavaScript code

  • Process data and create dynamic content

  • Develop small apps with user interfaces

  • Export code for use in external projects

The tool provides a "Live Application" view where users can interact with the created applications.

You will also have options to :

  • View the generated code

  • Copy it or open it in a new window to play with it.

Last updated