Skip to main content

Data analysis through code execution

J
Written by Johan Åkerman

Introduction

Sana’s code execution feature brings powerful data analysis directly into your workspace. Whether you’re working with spreadsheets or other structured data, Sana automatically handles the technical steps so you can focus on getting insights, no external tools or coding expertise required.

How to use Code Execution

  • No special mode required: Simply upload a relevant file, or reference data from your integrations.

  • Ask in natural language: Describe what you want (e.g., “Show yearly sales totals” or “Plot deals per region”).

  • Automatic analysis: Sana will determine if code execution is needed to respond to your query, securely run the analysis in the background, and present the results, such as tables, summaries, directly in your chat.

  • Export & share results: Plots generated during code execution can be downloaded as image files.

Example use cases of code execution

  • Summarize spreadsheet data (totals, averages, trends).

  • Generate charts and graphs for business metrics.

  • Analyze CRM exports, sales pipelines, or operational reports.

  • Process data from integrations like Google Drive or internal databases.

  • Chain together search and analysis (e.g., “Find this file, then plot deal size by year”).

These are just starting points, Sana’s code execution is designed to be flexible and powerful. We encourage you to experiment and find your own workflows and use cases.

FAQ

Q: Do I need to write code or select a tool?

A: No - just upload your data or ask your question. Sana automatically handles the technical details .

Q: Can I download the results?

A: You can download generated plots as images

Q: Is my data secure?

A: Yes. Each code execution runs in a secure, isolated environment unique to your chat.

Did this answer your question?