Hex with an AI Agent: Data Analysis Requests and Routines

· DoubleX

Quick answer

With an AI agent connected to Hex, you can search existing projects and analyses, run them on request or on a schedule, and send the results to Google Sheets, Slack, or Gmail. In DoubleX IA OS, the agent asks for confirmation before sending or changing anything, and every task keeps a full history.

Data teams spend a lot of time on repeat work around Hex: finding the right project, rerunning the same analysis, and sending the numbers to people who do not open Hex. An AI agent can take over that routine work while your analysts keep the modeling and judgment.

This guide shows real requests, scheduled routines, and combinations with other tools. It makes no promises about time saved, because that depends on your data and your process.

What can you ask an AI agent to do in Hex?#

Through the Hex connector, an agent can search and run Hex projects and analyses. Hex is a data workspace where teams build analyses and projects, and the connector lets an agent find them and run them for you in plain language.

Here is how common tasks map to what the agent does:

TaskHow the agent helpsTools involved
Find the right projectSearches Hex by topic, name, or descriptionHex
Rerun a recurring analysisRuns the project and reads the resultHex
Share numbers with the businessWrites the result to a sheet or posts it in a channelHex, Google Sheets, Slack
Send a weekly summaryDrafts an email with the findings for reviewHex, Gmail
Deliver a report or dashboardCreates a file or live artifact from the resultHex, Artifacts

If you have not connected Hex yet, start with How to Connect Hex to an AI Agent.

Which requests work well for finding existing projects and analyses?#

Specific requests that name a topic, a metric, or a team work best. The agent searches Hex, lists what it found, and tells you which project looks like the best match.

Copy and adapt these:

  • "Search Hex for projects about customer churn and list the name and description of each one."
  • "Find the analysis we use for the monthly revenue review and tell me what it covers."
  • "Look in Hex for anything related to onboarding funnel conversion and suggest which one to run first."
  • "Run the weekly signups analysis in Hex and summarize the result in five bullet points."

How do you run a Hex analysis on a schedule?#

You create a routine, which is a trigger that makes the agent work on its own at a set time, such as every Monday at 8 a.m. The routine runs with the permissions of the person who created it.

Steps in DoubleX IA OS:

  1. Create the agent in Agents by describing what you need in your own words, or start from the diagnostic, a 5 to 10 minute conversation that turns into a ready team of agents.
  2. Open Connectors and connect Hex. Connect Google Sheets, Slack, or Gmail as well if you want to deliver results there.
  3. Set the agent's permissions: choose which systems it can use and which actions it can run in each one.
  4. Test the request once by hand and check the result in Tasks.
  5. Schedule the routine, for example: "Every Monday at 8 a.m., run the weekly pipeline analysis in Hex and post a summary."

Routines can also run once on a set date, every hour, or when a webhook or an email arrives. See Triggers and Webhooks for the details.

How do you combine Hex with Google Sheets, Slack, and Gmail?#

Hex produces the analysis, and the other connectors deliver it where people already work. The agent reads the result and then writes it to a sheet, posts it in Slack, or drafts an email.

Examples you can copy:

  • "Run the retention analysis in Hex and add the key figures as a new row in the 'Weekly metrics' Google Sheet."
  • "Run the revenue analysis in Hex and send a short summary to the #data-updates channel in Slack."
  • "Run the support volume analysis in Hex, then create a Gmail draft to the leadership team with the main findings."

The agent can create the Gmail draft and leave it for you to review. Sending, deleting, or changing data in other systems requires your confirmation first.

If your team also tracks product events, the Amplitude with an AI Agent guide shows similar requests for that tool.

How do you turn a Hex result into a report or live dashboard?#

Ask the agent to deliver the result as an artifact, which is a file the agent produces, such as a report, spreadsheet, presentation, or HTML page. There are also live artifacts: dashboards and small apps that update with the data.

Try requests like these:

  • "Run the quarterly analysis in Hex and create a report with the findings, a short explanation of each chart, and open questions."
  • "Build a live dashboard from the weekly signups analysis in Hex so the growth team can check it any time."

You can share artifacts with a person, a team, the whole company, or through a link. To manage them programmatically, see Artifacts.

What should you watch for with permissions, confirmation, and history?#

Keep the agent's access as narrow as the job requires. For each agent, you choose which systems it uses and which actions it can run in each one, and actions that change data can stay off so it works read-only.

  • Confirmation: before sending, deleting, or changing something in your systems, the agent asks for confirmation and shows what it did step by step.
  • History: each request becomes a task in Tasks with the request, every tool used, and the result, so you can see who asked, what ran, and when.
  • Privacy: company content is not used to train models, and each company has its own separate database.
  • Roles and sharing: owner, admin, and member roles, plus teams, control who sees and shares what.

Because a routine runs with its creator's permissions, create it from an account that has only the access the routine needs.

Frequently asked questions#

Can the agent write new Hex projects?#

The Hex connector lets the agent search and run projects and analyses. Building new projects is not something this guide covers, so keep modeling work with your analysts.

Do I need to write code or prompts?#

No. You describe the task in your own words and the system builds the agent. If you want to go further, there is a REST API, a CLI, and an MCP server.

Can the agent change data in my systems?#

Only if you allow it. You can leave actions that change data turned off, and the agent asks for confirmation before sending, deleting, or changing anything.

How do I know what a scheduled routine did?#

Open Tasks. Each run is logged with the request, the tools the agent used, and the result.

Can I get alerts instead of scheduled runs?#

Yes, the Radar is a proactive agent that watches your email and calendar and tells you what needs attention, including phone notifications. See Radar.

Related guides

More Hex guides