A trigger that activates an agent or workflow in response to an event, user action, schedule, webhook, or data change.
An agent hook is the event trigger that fires an agent: on a commit, on a schedule, on a change to the graph itself. It is the wiring that turns a dormant agent definitionAgent DefinitionWorkflows & AgentsAn autonomous agent definitionView reference → into something that acts on its own, without a person pressing run. This is event-driven automation applied to AI agents, the same pattern that webhooks and CI triggers brought to ordinary software, now pointed at the agent frameworks and coding agents that matured across 2023 to 2025.
A team wires an agent hook to their main branch: every merge fires the dependencyDependencyTeam & OrganisationA cross-team or system dependencyView reference →-audit agent. The hook carries the event (push to main), the condition (changed files include package.json), and the target (the agent definition to wake). On merge, the hook triggers the continuous-integration pipeline, which runs the agent inside it; the agent checks for newly vulnerable dependencies and comments on the next pull request if it finds any. A second hook on a nightly schedule fires the same definition against the full tree, so the agent runs both reactively and on a cadence from one shared configuration.
In the Unified Product Graph, an agent hook sits in the automation region as the trigger primitive. It connects to its agent through Agent Definitiontriggered viaAgent Hookhierarchy, and it reaches outward into the rest of the automation surface: agent_definition_triggered_via_agent_hookAgent HooktriggersCI Pipelinecross-domain ties it to a agent_hook_triggers_ci_pipelineCI PipelineDevOps & PlatformA CI/CD pipelineView reference →, and ci_pipelineAgent Hookfires duringWorkflow Runcausal records when a hook fired inside a live agent_hook_fires_during_workflow_runWorkflow RunWorkflows & AgentsAn execution of a workflowView reference →. Separating the trigger from the agent it fires means the same agent can be reached by many events, and a single event can be traced to every agent it wakes, so the question "what set this agent off, and when?" is answerable from the graph alone.workflow_run
Type-specific fields on BaseNode
hook_eventstringEvent that triggers this hook
hook_actionstringAction performed when the hook fires
hook_statusstringOperational status of the hook
execution_countnumberNumber of times this hook has fired
idstringrequiredUnique identifier (UUID)
typeNodeTyperequiredDiscriminator for the entity type
titlestringrequiredDisplay name
descriptionstringOptional detailed description
statusstringLifecycle status
tagsstring[]Freeform tags for filtering
4 phases — initial: todo · template: WORK_ITEM
3 edge types connected to this entity.
agent_definition_triggered_via_agent_hookagent_hook_triggers_ci_pipelineagent_hook_fires_during_workflow_run