Hex is a collaborative data workspace that combines SQL, Python, and R notebooks for analytics and data science
Hex is a collaborative data workspace that combines SQL, Python, and R notebooks for analytics and data science On Nagent, Hex is exposed as a fully-configurable analytics integration that any agent can call — 31 actions, and API key authentication. No code is required to wire Hex into your workflow — connect it once via the External Integrations panel and reuse it across every agent you build.
Agent builders use Hex to automate the kinds of tasks analytics teams previously handled manually. Concrete examples — each one is a single agent step in Nagent — include:
Every action and trigger is paired with a structured input/output schema (visible in the sections below), so when you wire Hex into Helix — our agentic agent builder — the editor knows exactly what each step expects and produces. Configure once, deploy anywhere across your Nagent agents.
Every operation an agent can call against Hex, with input parameters and output schema. Drop these into any step of an agent built in Helix.
HEX_CANCEL_RUNTool to cancel a project run that is in progress. Use when you need to stop a currently executing Hex project run before it completes.
Input parameters
Unique ID for a run of a Hex project in UUID format. This identifies the specific run to cancel.
Unique ID for a Hex project in UUID format. This identifies the project that contains the run to cancel.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_CREATE_CELLTool to create a new cell in the draft version of a Hex project. Use when adding CODE or SQL cells to a project. Only CODE and SQL cell types are supported. Requires EDIT_PROJECT_CONTENTS permission.
Input parameters
Optional label for the cell to make it easier to identify
Type of cell to create. Only CODE and SQL types are supported.
Cell contents. Must include codeCell.source for CODE type or sqlCell for SQL type.
Model for specifying where to place the cell in the project.
Unique ID for the Hex project (UUID format)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_CREATE_COLLECTIONTool to create a new collection in the Hex workspace. Use when you need to organize projects and resources into a collection.
Input parameters
Name for the collection
Model for collection sharing configuration.
Description of the collection
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_CREATE_GROUPTool to create a new group in the Hex workspace. Use when you need to organize users into groups for collaboration and access control.
Input parameters
Name for the new group (must be non-empty)
Model for group members.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_DEACTIVATE_USERDeactivates a user in the Hex workspace. Use this when you need to deactivate a user by their ID.
Input parameters
Unique ID for a user in UUID format (e.g., 019cd222-074d-7003-a83e-56a40e97b60b)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_DELETE_CELLPermanently delete a cell from the draft version of a project. Requires EDIT_PROJECT_CONTENTS permission. Use when you need to remove a cell from a Hex project's draft.
Input parameters
Unique identifier for the cell to delete. Must be in UUID format (e.g., '019cd2fb-8a0d-7007-9870-c3999f91e95b').
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_DELETE_GROUPDeletes a group from the Hex workspace. Use this when you need to permanently remove a group by its ID.
Input parameters
Unique ID for a group in UUID format (e.g., 019cd2fb-44c5-7007-a1d5-8fbe7aa7dbf3)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_DELETE_GUIDE_DRAFTDeletes a guide draft by ID from Hex. Use this when you need to permanently remove a draft guide.
Input parameters
Unique ID for a guide file in UUID format
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_EDIT_COLLECTIONTool to edit a collection's name, description, and sharing settings in Hex. Use when you need to update collection metadata or change sharing permissions.
Input parameters
New name for the collection (must be non-empty if provided)
Sharing configuration for users, groups, or workspace.
Description of the collection
Unique ID for the collection to edit (UUID format)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_EDIT_GROUPTool to edit a group's name and/or members in Hex. Use when you need to update group details, add users to a group, or remove users from a group.
Input parameters
New name for the group. Must be non-empty if provided.
Model for group members configuration.
Unique ID for a group in UUID format (e.g., 019cd2fb-0a06-7006-a522-d36b008968c7)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_EDIT_PROJECT_SHARING_COLLECTIONSTool to add a project to collections or remove it from collections. Use when you need to update project sharing by adding or modifying collection access. Workspace tokens need Collections -> Write access scope in addition to Projects -> Write access scope.
Input parameters
Sharing configuration with collections to add or remove
Unique ID for the Hex project (UUID format)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_EDIT_PROJECT_SHARING_GROUPSTool to edit project sharing settings for groups in Hex. Use when you need to add or modify group access to a project. Supports up to 25 groups per request.
Input parameters
Sharing configuration specifying which groups to add or modify and their access levels
Unique ID for the Hex project in UUID format
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_EDIT_PROJECT_SHARING_ORG_AND_PUBLICTool to edit project sharing settings for workspace members and public web access. Use when you need to control who can access a Hex project and what permissions they have.
Input parameters
Sharing configuration with publicWeb and workspace access levels. Both fields are required.
Unique ID for a Hex project (UUID format). This is the project whose sharing settings will be updated.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_EDIT_PROJECT_SHARING_USERSTool to edit project sharing settings for individual users in Hex. Add or modify user access to a project by specifying access levels (NONE, APP_ONLY, CAN_VIEW, CAN_EDIT, FULL_ACCESS). Use when you need to grant or update project permissions for specific users. Maximum 25 users per request.
Input parameters
Sharing configuration with upsert.users array containing user access settings
Unique ID for the Hex project in UUID format (e.g., '019cd222-4c60-7003-9f01-f6d33d4be59f')
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_GET_CELLTool to get a single cell by ID from the draft version of a Hex project. Use when you need to retrieve cell details including source contents for CODE and SQL cells. Returns complete cell information including cell type, contents, and associated metadata.
Input parameters
Unique ID for a cell in UUID format (e.g., '019cd222-7c1d-7003-97d6-b5fd42e48784')
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_GET_COLLECTIONTool to get information about a specific collection in Hex. Returns collection details including name, description, creator, and sharing settings. Use when you need to retrieve metadata about a collection by its ID.
Input parameters
Unique ID for a collection (UUID format). Example: 019cd222-11e7-7111-b40b-f40d81aba29b
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_GET_GROUPTool to retrieve information about a specific Hex group. Use when you need to get details about a group including its ID, name, and creation date.
Input parameters
Unique ID for a group in UUID format (e.g., 019cd2fb-0a06-7006-a522-d36b008968c7)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_GET_PROJECTTool to get metadata about a single Hex project. Use when you need to retrieve project details including title, description, creator, owner, status, categories, analytics, schedules, and sharing information.
Input parameters
Unique ID for a Hex project in UUID format
Include sharing information in the response (default: false)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_GET_PROJECT_RUNSTool to retrieve the status of API-triggered runs for a specific Hex project. Use when you need to check the execution status, timing, or history of project runs. Returns a paginated list of runs with detailed status information.
Input parameters
Number of results per page. Must be between 1 and 100. Default is 25 if not specified.
Offset for pagination. Use this to skip a certain number of results. Default is 0 if not specified.
Unique ID for a Hex project (UUID format). This is the project whose runs you want to retrieve.
Enum for run status values.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_GET_RUN_STATUSTool to retrieve the status of a specific Hex project run. Use when you need to check the current state, timing, or completion status of a project execution. Returns detailed information including start/end times, elapsed time, status, and notification details.
Input parameters
Unique ID for a run of a Hex project (UUID format)
Unique ID for a Hex project (UUID format)
Enable expanded statistics in the response
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_LIST_CELLSTool to list all cells from the draft version of a Hex project. Use when you need to retrieve cells with source code for SQL and CODE cells. Returns paginated results with cell details including type, label, and contents.
Input parameters
Pagination cursor for next page
Number of results per page (1-100, default: 25)
Pagination cursor for previous page
Unique ID for a Hex project (UUID format)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_LIST_COLLECTIONSTool to retrieve all collections in the workspace with pagination support. Use when you need to list or discover available collections.
Input parameters
Pagination cursor for retrieving the next page of results
Maximum number of collections to return per page (1-100, default: 25)
Pagination cursor for retrieving the previous page of results
Sort field enumeration for collections.
Sort direction enumeration.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_LIST_DATA_CONNECTIONSTool to list all data connections in the Hex workspace with pagination support. Use when you need to retrieve, browse, or audit data connections configured in Hex. Supports filtering by sort criteria and cursor-based pagination for large result sets.
Input parameters
Pagination cursor for retrieving the next page of results. Obtained from the pagination object in the previous response.
Number of results to return per page. Must be between 1 and 100. Default is 25.
Pagination cursor for retrieving the previous page of results. Obtained from the pagination object in the previous response.
Enum for sort field options.
Enum for sort direction options.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_LIST_GROUPSTool to list all groups in the Hex workspace with pagination support. Use when you need to retrieve groups with optional sorting and pagination.
Input parameters
Pagination cursor to retrieve the next page of results. Use the 'after' value from the previous response's pagination object.
Number of results to return per page. Must be between 1 and 500. Defaults to 25 if not specified.
Pagination cursor to retrieve the previous page of results. Use the 'before' value from the previous response's pagination object.
Sort field options for groups listing.
Sort direction options for groups listing.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_LIST_PROJECTSTool to list all viewable Hex projects with pagination and filtering support. Use when you need to retrieve projects sorted by creation date or filter by status, categories, creator, owner, or collection.
Input parameters
Pagination cursor for fetching the next page of results
Number of results per page (1-100, default: 25)
Pagination cursor for fetching the previous page of results
Sort field options for project listing.
Filter projects by one or more statuses
Filter projects by one or more categories
Filter projects by owner email address
Filter projects by collection ID
Filter projects by creator email address
Sort direction options.
Include sharing information for each project (default: false)
Include trashed projects in the results (default: false)
Include archived projects in the results (default: false)
Include component projects in the results (default: false)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_LIST_USERSTool to list all users in the Hex workspace with pagination support. Returns user details including names, emails, roles, and last login dates. Use when you need to retrieve users, filter by group, or paginate through large user lists.
Input parameters
Pagination cursor for fetching the next page of results. Use the cursor value returned in the previous response's pagination object.
Number of results per page. Must be between 1 and 500. Default is 25.
Pagination cursor for fetching the previous page of results. Use the cursor value returned in the previous response's pagination object.
Sort field options for user listing.
Filter users by group ID. When provided, returns only users that belong to the specified group.
Sort direction options for user listing.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_PUBLISH_GUIDE_DRAFTSTool to publish all currently drafted guides or specific guides by ID. Use when you need to make draft guides publicly available. Specify either publishAllDraftGuides=true or provide specific guide IDs.
Input parameters
List of specific guide IDs to publish. Ignored if publishAllDraftGuides is true.
Set to true to publish all draft guides. When true, the orgGuideFileIds parameter is ignored.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_RUN_PROJECTTool to trigger a run of the latest published version of a Hex project. Use when you need to execute a project programmatically. Rate limited to 20 requests per minute and 60 requests per hour.
Input parameters
Perform dry run without executing project. Useful for validating inputs without running the project (default: false)
SavedView viewId to use for project run inputs. Allows running with a specific saved view configuration
Unique ID for the Hex project (UUID format)
Input parameters for project run as key/value pairs matching variable names defined in the project
List of notification details for Slack/users/groups to notify when the run completes
Flag configuration override for feature flags
Use cached SQL results from previous runs when available (default: true)
Update cached state of published app after successful run (default: false)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_UPDATE_CELLTool to update a cell's source code and/or data connection in Hex. Use when you need to modify the contents of a code cell or SQL cell. Requires EDIT_PROJECT_CONTENTS permission.
Input parameters
Unique identifier for the cell to update (UUID format)
Model for cell contents with either code or SQL cell data.
Data connection ID for SQL cells (UUID format or null to remove connection)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_UPDATE_PROJECTTool to add or remove a status (including endorsements) from a Hex project. Use when you need to update the project's status or remove an existing status by setting it to null.
Input parameters
Status name to apply to the project (including endorsements). Set to null to remove the current status from the project.
Unique ID for the Hex project in UUID format (e.g., '019cd222-4c60-7003-9f01-f6d33d4be59f')
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
HEX_UPSERT_GUIDE_DRAFTTool to update or create guide drafts by filePath. Creates a new guide if it doesn't exist, creates a draft if the guide exists without a draft, or updates an existing draft. Use when you need to programmatically manage guide content in Hex.
Input parameters
Array of guide files to create or update. Each file must have a filePath and contents
If true, overwrites existing guides even if they were synced from a different external source. Use with caution as this may overwrite content (default: false)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
No publicly available marketplace agent is found using this tool yet. There are 45 agents privately built on Nagent that already use Hex.
Build on Nagent
Connect Hex to any Nagent agent in minutes — no API key management, no boilerplate. Just configure and deploy.
The five questions agent builders ask before adopting a new integration.
Open the External Integrations panel inside Nagent (app.nagent.ai/externalIntegration), find Hex, and click "Connect Now." You'll authenticate with an API key — Nagent handles credential storage and refresh automatically. Once connected, Hex is available to any agent in your workspace.
No. Nagent provides no-code integration for every tool. Once Hex is connected, you configure its 31 actions directly in the agent builder UI — no API calls, no boilerplate, no schema management.
Helix — Nagent's agentic agent builder — lets you drop Hex steps into any workflow visually. Pick an action (e.g., one of those listed above), fill in the inputs (Helix knows the required vs. optional schema for each parameter), and connect it to upstream/downstream steps. Triggers run as the entry point of an agent, so when a Hex event fires, the agent kicks off automatically.
Every Hex action and trigger ships with a fully-typed schema — input parameters with name, type, required flag, and description, plus the output payload shape. The schemas are documented in the sections above. Helix uses these schemas to validate your configuration at build time and to type-check the data flowing between steps.
Yes. While Hex ships with 31 pre-built analytics actions, you can layer custom logic around them inside Helix — pre/post-processing steps, conditional branches, retries, or stitching Hex together with other connected tools. For deeper customization, talk to our team about Nagent's Agentic AI Lab — forward-deployed engineers who build Hex-based workflows tailored to your business.