> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Trigger Novu notifications and manage subscribers from Guild agents

> Connect Guild agents to Novu to trigger notifications, broadcast messages, cancel workflows, manage subscribers, and configure channel integrations.

Integrations · Novu

A Guild agent can trigger notification events, manage subscribers, and control Novu environments without you writing a single API call. Guild stores the Novu secret key server-side and injects it into every request, so agent code never sees the credential. Credential policies let you restrict which operations each agent may call, and every request is auditable through Guild's credential proxy.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Novu.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Novu to your first agent.

## What the Novu integration exposes

The integration provides tools across notifications, subscribers, channel integrations, layouts, environments, and inbound email domains. Agents can trigger single or bulk events, broadcast to all subscribers, cancel pending workflows by transaction ID, and read or update subscriber preferences. Tools also cover environment variables, layout previews, domain DNS verification, and channel connection OAuth flows.

## How it works

**1. Open credentials in Guild**

Go to **Access & setup > Credentials** in your Guild account or organization. Click **Connect** and select **novu**.

**2. Paste your Novu API key**

Enter your Novu secret key into the **API Key** field.

**3. Import tools into your agent**

Import `NovuTools` from `@guildai-services/guildai~novu` and spread it into your agent's `tools` object. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only the tools your agent needs.

## Why Novu access needs governing

Novu tools can trigger broadcast notifications to all subscribers, cancel active workflows, delete subscriber records, publish environments, and remove channel integrations. An unrestricted credential lets any agent in the account perform all of these actions. Guild's [credential policies](https://docs.guild.ai/platform/credential-policies.md) let you write ALLOW and DENY rules scoped to specific operations, agents, or workspaces, so a reporting agent can read notification events without being able to trigger or cancel them.

Guild stores the Novu secret key server-side and injects it only after the policy check passes. Agents never receive the raw key. You can scope a credential to one workspace, one member, or one installed agent, so a production credential never reaches a development workspace. See [Credentials](https://docs.guild.ai/platform/credentials.md) for scope options and [Credential policies](https://docs.guild.ai/platform/credential-policies.md) for rule syntax.

## About the Novu integration

Agents can trigger single or bulk notification events, broadcast messages to all subscribers, and cancel pending workflows. They can manage subscribers, channel integrations, layouts, and environments. Inbound email domains, channel connections, and environment variables can also be created and configured. The integration is `guildai~novu`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as `Authorization: ApiKey <key>`

### Setup

**1. Connect Novu**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **novu**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { NovuTools } from "@guildai-services/guildai~novu"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with Novu.",
  tools: { ...NovuTools },
})
```

### Selecting specific tools

Tools are named with the `novu_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~novu`:

> [accordion] All 135 tools
>
> | Tool | What it does |
> | - | - |
> | `novu_channel_connections_controller_create_channel_connection` | Create a new channel connection for a resource for given integration. |
> | `novu_channel_connections_controller_delete_channel_connection` | Delete a specific channel connection by its unique identifier. |
> | `novu_channel_connections_controller_get_channel_connection_by_identifier` | Retrieve a specific channel connection by its unique identifier. |
> | `novu_channel_connections_controller_list_channel_connections` | List all channel connections for a resource. |
> | `novu_channel_connections_controller_update_channel_connection` | Update an existing channel connection by its unique identifier. |
> | `novu_channel_endpoints_controller_create_channel_endpoint` | Create a new channel endpoint for a resource. |
> | `novu_channel_endpoints_controller_delete_channel_endpoint` | Delete a specific channel endpoint by its unique identifier. |
> | `novu_channel_endpoints_controller_get_channel_endpoint` | Retrieve a specific channel endpoint by its unique identifier. |
> | `novu_channel_endpoints_controller_list_channel_endpoints` | List all channel endpoints for a resource based on query filters. |
> | `novu_channel_endpoints_controller_update_channel_endpoint` | Update an existing channel endpoint by its unique identifier. |
> | `novu_contexts_controller_create_context` | Create a new context with the specified type, id, and data. |
> | `novu_contexts_controller_delete_context` | Delete a context by its type and id. type and id are required fields, if the context does not exist, it returns the 404 response |
> | `novu_contexts_controller_get_context` | Retrieve a specific context by its type and id. type and id are required fields, if the context does not exist, it returns the 404 response |
> | `novu_contexts_controller_list_contexts` | Retrieve a paginated list of all contexts, optionally filtered by type and key pattern. type and id are optional fields, if provided, only contexts with the matching type and id will be returned.… |
> | `novu_contexts_controller_update_context` | Update the data of an existing context. type and id are required fields, data is required. |
> | `novu_domains_controller_create_domain` | Registers a new inbound-email domain. |
> | `novu_domains_controller_create_domain_route` | Creates a route on the domain that forwards inbound mail addressed to '@' to either a webhook or an agent. |
> | `novu_domains_controller_delete_domain` | Removes the domain and cascades the deletion to all of its routes. |
> | `novu_domains_controller_delete_domain_route` | Removes the route bound to '@'. |
> | `novu_domains_controller_diagnose_domain` | Runs live DNS checks for inbound email readiness (MX correctness, apex CNAME collision, and common DNS blocklists for the Novu mail host). |
> | `novu_domains_controller_get_domain` | Returns the domain configuration and the DNS records that must be in place. |
> | `novu_domains_controller_get_domain_auto_configure` | Returns whether DNS auto-configuration (Domain Connect) is available for this domain. |
> | `novu_domains_controller_get_domain_route` | Returns the route bound to '@'. |
> | `novu_domains_controller_list_domain_routes` | Returns a paginated list of routes attached to the domain. |
> | `novu_domains_controller_list_domains` | Returns a paginated list of inbound-email domains in the current environment. |
> | `novu_domains_controller_start_domain_auto_configure` | Generates a signed redirect URL the customer can follow to apply Novu DNS records at their DNS provider. |
> | `novu_domains_controller_test_domain_route` | Sends a synthetic inbound email through the same delivery path as production (outbound webhooks for webhook routes, signed HTTP to the agent for agent routes). |
> | `novu_domains_controller_update_domain` | Updates optional domain fields. |
> | `novu_domains_controller_update_domain_route` | Updates the destination of the route bound to '@'. |
> | `novu_domains_controller_verify_domain` | Performs a live DNS lookup to refresh the MX record status of the domain and updates the verification status accordingly. |
> | `novu_environments_controller_diff_environment` | Compares workflows and other resources between the source and target environments, returning detailed diff information including additions, modifications, and deletions. |
> | `novu_environments_controller_get_environment_tags` | Retrieve all unique tags used in workflows within the specified environment. |
> | `novu_environments_controller_publish_environment` | Publishes all workflows and resources from the source environment to the target environment. |
> | `novu_environments_controller_v1_create_environment` | Creates a new environment within the current organization. . |
> | `novu_environments_controller_v1_delete_environment` | Delete an environment by its unique identifier environmentId. . |
> | `novu_environments_controller_v1_list_my_environments` | This API returns a list of environments for the current organization. . |
> | `novu_environments_controller_v1_update_my_environment` | Update an environment by its unique identifier environmentId. . |
> | `novu_environment_variables_controller_create_environment_variable` | Creates a new environment variable. |
> | `novu_environment_variables_controller_delete_environment_variable` | Deletes an environment variable by key. |
> | `novu_environment_variables_controller_get_environment_variable` | Returns a single environment variable by key. |
> | `novu_environment_variables_controller_get_environment_variable_usage` | Returns the workflows that reference this environment variable via '\{\{env. |
> | `novu_environment_variables_controller_list_environment_variables` | Returns all environment variables for the current organization. |
> | `novu_environment_variables_controller_update_environment_variable` | Updates an existing environment variable. |
> | `novu_events_controller_broadcast_event_to_all` | Trigger a broadcast event to all existing subscribers, could be used to send announcements, etc. |
> | `novu_events_controller_cancel` | Using a previously generated transactionId during the event trigger, will cancel any active or pending workflows. |
> | `novu_events_controller_trigger` | Trigger event is the main (and only) way to send notifications to subscribers. |
> | `novu_events_controller_trigger_bulk` | Using this endpoint you can trigger multiple events at once, to avoid multiple calls to the API. |
> | `novu_inbound_webhooks_controller_handle_webhook` | Track activity and engagement events for a specific delivery provider |
> | `novu_integrations_controller_auto_configure_integration` | Auto-configure an integration by its unique key identifier integrationId for inbound webhook support. . |
> | `novu_integrations_controller_create_integration` | Create an integration for the current environment the user is based on the API key provided. . |
> | `novu_integrations_controller_generate_connect_o_auth_url` | Generate an OAuth URL that creates a workspace or tenant-level channel connection (Slack workspace install or MS Teams admin consent). . |
> | `novu_integrations_controller_generate_link_user_o_auth_url` | Generate an OAuth URL that links a specific subscriber to their chat identity (Slack user ID or MS Teams user OID). . |
> | `novu_integrations_controller_get_active_integrations` | List all the active integrations created in the organization |
> | `novu_integrations_controller_get_chat_o_auth_url` | Deprecated — use 'POST /integrations/channel-connections/oauth' (connect) or 'POST /integrations/channel-endpoints/oauth' (link\_user) instead. |
> | `novu_integrations_controller_list_integrations` | List all the channels integrations created in the organization |
> | `novu_integrations_controller_remove_integration` | Delete an integration by its unique key identifier integrationId. . |
> | `novu_integrations_controller_set_integration_as_primary` | Update an integration as primary by its unique key identifier integrationId. . |
> | `novu_integrations_controller_update_integration_by_id` | Update an integration by its unique key identifier integrationId. . |
> | `novu_layouts_controller_create` | Creates a new layout in the Novu Cloud environment |
> | `novu_layouts_controller_delete` | Removes a specific layout by its unique identifier layoutId |
> | `novu_layouts_controller_duplicate` | Duplicates a layout by its unique identifier layoutId. |
> | `novu_layouts_controller_generate_preview` | Generates a preview for a layout by its unique identifier layoutId |
> | `novu_layouts_controller_get` | Fetches details of a specific layout by its unique identifier layoutId |
> | `novu_layouts_controller_get_usage` | Retrieves information about workflows that use the specified layout by its unique identifier layoutId |
> | `novu_layouts_controller_list` | Retrieves a list of layouts with optional filtering and pagination |
> | `novu_layouts_controller_update` | Updates the details of an existing layout, here layoutId is the identifier of the layout |
> | `novu_messages_controller_delete_message` | Delete a message entity from the Novu platform by messageId. . |
> | `novu_messages_controller_delete_messages_by_transaction_id` | Delete multiple messages from the Novu platform using transactionId of triggered event. . |
> | `novu_messages_controller_get_messages` | List all messages for the current environment. . |
> | `novu_notifications_controller_get_notification` | Retrieve an event by its unique key identifier notificationId. . |
> | `novu_notifications_controller_list_notifications` | List all notification events (triggered events) for the current environment. . |
> | `novu_subscribers_controller_archive_all_notifications` | Archive all in-app (inbox) notifications matching the specified filters. |
> | `novu_subscribers_controller_archive_all_read_notifications` | Archive all read in-app (inbox) notifications matching the specified filters. |
> | `novu_subscribers_controller_archive_notification` | Archive a specific in-app (inbox) notification by its unique identifier notificationId. |
> | `novu_subscribers_controller_bulk_update_subscriber_preferences` | Bulk update subscriber preferences by its unique key identifier subscriberId. . |
> | `novu_subscribers_controller_complete_notification_action` | Mark a single in-app (inbox) notification's action (primary or secondary) as completed by its unique identifier notificationId and action type actionType. |
> | `novu_subscribers_controller_create_subscriber` | Create a subscriber with the subscriber attributes. subscriberId is a required field, rest other fields are optional, if the subscriber already exists, it will be updated |
> | `novu_subscribers_controller_delete_all_notifications` | Permanently delete all in-app (inbox) notifications matching the specified filters. |
> | `novu_subscribers_controller_delete_notification` | Delete a specific in-app (inbox) notification permanently by its unique identifier notificationId. |
> | `novu_subscribers_controller_get_subscriber` | Retrieve a subscriber by its unique key identifier subscriberId. subscriberId field is required. |
> | `novu_subscribers_controller_get_subscriber_notifications` | Retrieve in-app (inbox) notifications for a subscriber by its unique key identifier subscriberId. . |
> | `novu_subscribers_controller_get_subscriber_notifications_count` | Retrieve count of in-app (inbox) notifications for a subscriber by its unique key identifier subscriberId. . |
> | `novu_subscribers_controller_get_subscriber_preferences` | Retrieve subscriber channel preferences by its unique key identifier subscriberId. . |
> | `novu_subscribers_controller_list_subscriber_topics` | Retrieve subscriber's topic subscriptions by its unique key identifier subscriberId. . |
> | `novu_subscribers_controller_mark_all_notifications_as_read` | Mark all in-app (inbox) notifications matching the specified filters as read. |
> | `novu_subscribers_controller_mark_notification_as_read` | Mark a specific in-app (inbox) notification as read by its unique identifier notificationId. |
> | `novu_subscribers_controller_mark_notification_as_unread` | Mark a specific in-app (inbox) notification as unread by its unique identifier notificationId. |
> | `novu_subscribers_controller_mark_notifications_as_seen` | Mark specific and multiple in-app (inbox) notifications as seen. |
> | `novu_subscribers_controller_patch_subscriber` | Update a subscriber by its unique key identifier subscriberId. subscriberId is a required field, rest other fields are optional |
> | `novu_subscribers_controller_remove_subscriber` | Deletes a subscriber entity from the Novu platform along with associated messages, preferences, and topic subscriptions. subscriberId is a required field. |
> | `novu_subscribers_controller_revert_notification_action` | Revert a single in-app (inbox) notification's action (primary or secondary) to pending state by its unique identifier notificationId and action type actionType. |
> | `novu_subscribers_controller_search_subscribers` | Search subscribers by their email, phone, subscriberId and name. . |
> | `novu_subscribers_controller_snooze_notification` | Snooze a specific in-app (inbox) notification by its unique identifier notificationId until a specified time. |
> | `novu_subscribers_controller_unarchive_notification` | Unarchive a specific in-app (inbox) notification by its unique identifier notificationId. |
> | `novu_subscribers_controller_unsnooze_notification` | Unsnooze a specific in-app (inbox) notification by its unique identifier notificationId. |
> | `novu_subscribers_controller_update_subscriber_preferences` | Update subscriber preferences by its unique key identifier subscriberId. workflowId is optional field, if provided, this API will update that workflow preference, otherwise it will update global… |
> | `novu_subscribers_v1_controller_bulk_create_subscribers` | Using this endpoint multiple subscribers can be created at once. |
> | `novu_subscribers_v1_controller_delete_subscriber_credentials` | Delete subscriber credentials for a provider such as slack and FCM by providerId. . |
> | `novu_subscribers_v1_controller_get_notifications_feed` | Retrieve subscriber in-app (inbox) notifications by its unique key identifier subscriberId. |
> | `novu_subscribers_v1_controller_get_unseen_count` | Retrieve unseen in-app (inbox) notifications count for a subscriber by its unique key identifier subscriberId. |
> | `novu_subscribers_v1_controller_mark_action_as_seen` | Update in-app (inbox) notification's action status by its unique key identifier messageId and type field type. type field can be primary or secondary |
> | `novu_subscribers_v1_controller_mark_all_unread_as_read` | Update all subscriber in-app (inbox) notifications state such as read, unread, seen or unseen by subscriberId. |
> | `novu_subscribers_v1_controller_mark_messages_as` | Update subscriber's multiple in-app (inbox) notifications state such as seen, read, unseen or unread by subscriberId. messageId is of type mongodbId of notifications |
> | `novu_subscribers_v1_controller_modify_subscriber_channel` | Upsert credentials for a provider such as slack and FCM. providerId is required field. |
> | `novu_subscribers_v1_controller_update_subscriber_channel` | Update credentials for a provider such as slack and FCM. providerId is required field. |
> | `novu_subscribers_v1_controller_update_subscriber_online_flag` | Update the subscriber online status by its unique key identifier subscriberId |
> | `novu_topics_controller_create_topic_subscriptions` | This api will create subscription for subscriberIds for a topic. . |
> | `novu_topics_controller_delete_topic` | Delete a topic by its unique key identifier topicKey. . |
> | `novu_topics_controller_delete_topic_subscriptions` | Delete subscriptions for subscriberIds for a topic. |
> | `novu_topics_controller_get_topic` | Retrieve a topic by its unique key identifier topicKey |
> | `novu_topics_controller_get_topic_subscription` | Retrieve a subscription by its unique identifier for a topic. |
> | `novu_topics_controller_list_topics` | This api returns a paginated list of topics. |
> | `novu_topics_controller_list_topic_subscriptions` | List all subscriptions of subscribers for a topic. |
> | `novu_topics_controller_update_topic` | Update a topic name by its unique key identifier topicKey |
> | `novu_topics_controller_update_topic_subscription` | Update a subscription by its unique identifier for a topic. |
> | `novu_topics_controller_upsert_topic` | Creates a new topic if it does not exist, or updates an existing topic if it already exists. |
> | `novu_topics_v1_controller_get_topic_subscriber` | Check if a subscriber belongs to a certain topic |
> | `novu_translation_controller_create_translation_endpoint` | Create a translation for a specific workflow and locale, if the translation already exists, it will be updated |
> | `novu_translation_controller_delete_translation_endpoint` | Delete a specific translation by resource type, resource ID and locale |
> | `novu_translation_controller_delete_translation_group_endpoint` | Delete an entire translation group and all its translations |
> | `novu_translation_controller_get_master_json_endpoint` | Retrieve all translations for a locale in master JSON format organized by resourceId (workflowId) |
> | `novu_translation_controller_get_single_translation` | Retrieve a specific translation by resource type, resource ID and locale |
> | `novu_translation_controller_get_translation_group_endpoint` | Retrieves a single translation group by resource type (workflow, layout) and resource ID (workflowId, layoutId) |
> | `novu_translation_controller_import_master_json_endpoint` | Import translations for multiple workflows from master JSON format for a specific locale |
> | `novu_translation_controller_upload_master_json_endpoint` | Upload a master JSON file containing translations for multiple workflows. |
> | `novu_translation_controller_upload_translation_files` | Upload one or more JSON translation files for a specific workflow. |
> | `novu_workflow_controller_create` | Creates a new workflow in the Novu Cloud environment |
> | `novu_workflow_controller_generate_preview` | Generates a preview for a specific workflow step by its unique identifier stepId |
> | `novu_workflow_controller_get_workflow` | Fetches details of a specific workflow by its unique identifier workflowId |
> | `novu_workflow_controller_get_workflow_step_data` | Retrieves data for a specific step in a workflow |
> | `novu_workflow_controller_patch_workflow` | Partially updates a workflow by its unique identifier workflowId |
> | `novu_workflow_controller_remove_workflow` | Removes a specific workflow by its unique identifier workflowId |
> | `novu_workflow_controller_search_workflows` | Retrieves a list of workflows with optional filtering and pagination |
> | `novu_workflow_controller_sync` | Synchronizes a workflow to the target environment |
> | `novu_workflow_controller_update` | Updates the details of an existing workflow, here workflowId is the identifier of the workflow |

## Frequently asked questions

> [accordion] Can an agent cancel a notification that has already been sent?
>
> No. The cancel tool uses a transactionId to cancel active or pending workflows only. A notification that has already been delivered cannot be cancelled.

> [accordion] How does Guild authenticate with Novu?
>
> Guild sends the Novu secret key as the `Authorization: ApiKey <key>` header on every request. The key is stored server-side and injected by Guild's credential proxy; the agent code never sees it.

> [accordion] Can I limit an agent to read-only access on my Novu account?
>
> Yes. Use [credential policies](https://docs.guild.ai/platform/credential-policies.md) to write DENY rules targeting mutating operations such as `novu_events_controller_trigger` or `novu_subscribers_controller_remove_subscriber`, paired with an ALLOW rule scoped to that agent.

> [accordion] Can I use a different Novu key for one workspace than the rest of my organization?
>
> Yes. Connect a second credential scoped to that workspace from the workspace's Credentials page. Guild will use the workspace-scoped credential for agents in that workspace instead of the account-level one. See [Credentials](https://docs.guild.ai/platform/credentials.md) for how Guild selects among multiple credentials.

## Put a governed agent on Novu this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Novu.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Novu to your first agent.

## Related

**Also runs on Guild:** [Ably](https://docs.guild.ai/integrations/ably.md) · [Customer.io](https://docs.guild.ai/integrations/customer-io.md) · [Daily](https://docs.guild.ai/integrations/daily.md) · [Discord](https://docs.guild.ai/integrations/discord.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
