---
title: "AgentRQ Hooks: Outside Requests Become Agent Tasks | AgentRQ Guidelines"
url: https://agentrq.com/guidelines/hooks/
description: "Step-by-step guides to AgentRQ Hooks: turn GitHub issues, CI failures, Jira issues and any webhook into AI coding agent tasks, then check every delivery."
---

# AgentRQ Hooks: Outside Requests Become Agent Tasks

A hook turns a request from an outside service into one of your account's events, and so into a task. When a GitHub issue opens, a CI run fails, someone sends a Jira issue or a cron job calls a URL, the agent in the right workspace gets a task with the request's details in it. These guides walk through every step, with screenshots from a real run of three registrations: GitHub issues for **storefront-api**, Jira issues for **web-app** and nightly backup alerts for **ops**.

[![](https://agentrq.com/assets/guideline-icons/webhook.svg)Any Webhookcurl -X POST $HOOK_URL → a task](https://agentrq.com/guidelines/hooks/start-an-agent-task-from-any-webhook-with-the-generic-hook) [![](https://agentrq.com/assets/guideline-icons/activity.svg)Deliveries and Setuprejected, ignored, published · Replay · Rotate](https://agentrq.com/guidelines/hooks/check-hook-deliveries-replay-rotate-and-reach-your-server) [![](https://agentrq.com/assets/guideline-icons/github.svg)GitHub Issues and CIissue.opened, ci.failed, pr.opened → a task](https://agentrq.com/guidelines/hooks/turn-github-issues-and-ci-failures-into-agent-tasks) [![](https://agentrq.com/assets/guideline-icons/ticket.svg)Jira IssuesActions → Send to AgentRQ → a task](https://agentrq.com/guidelines/hooks/send-jira-issues-to-an-ai-coding-agent) [![](https://agentrq.com/assets/guideline-icons/code.svg)Write Your Own HookGOOS=wasip1 GOARCH=wasm go build](https://agentrq.com/guidelines/hooks/write-your-own-agentrq-hook-in-webassembly)

## How the Pieces Fit

Four things work together. You set up the last two first, because a hook only fires an event.

- → **A hook** is a small WebAssembly program that checks a request is genuine and decides which events it fires. AgentRQ ships three built-in hooks: **github**, **jira** and **generic**. You can also [write your own](https://agentrq.com/guidelines/hooks/write-your-own-agentrq-hook-in-webassembly).
- → **A registration** is one use of a hook in your account. It has a name, its own payload URL, the hook's inputs (such as the webhook secret) and **routes**.
- → **A route** maps one of the hook's events, such as **issue.opened**, to one of your events. An event left **Not routed** is logged and fires nothing.
- → **Your event and its trigger.** An [event](https://agentrq.com/features/events) fires the tasks its triggers describe. A trigger names the workspace that gets the task, the task's title and its instructions. Put `{{EVENT_PAYLOAD}}` in the instructions to bring in the request's details.

So a request travels like this: the service calls the payload URL, the hook checks it and picks events, the routes turn them into your events, and each event's trigger files a task for the workspace's agent.

![The Hooks tab in AgentRQ, under Events, listing three registrations: Nightly backups (generic), Jira WEB (jira) and acme/storefront issues (github). Callouts point at the Hooks tab, the New registration button and a registration](https://agentrq.com/assets/guidelines/hooks-list.png)

## Which One Do You Need?

- → **GitHub issues, pull requests, CI runs, releases or pushes.** [Turn GitHub issues and CI failures into agent tasks](https://agentrq.com/guidelines/hooks/turn-github-issues-and-ci-failures-into-agent-tasks).
- → **Jira Cloud issues and comments.** [Send Jira issues to an AI coding agent](https://agentrq.com/guidelines/hooks/send-jira-issues-to-an-ai-coding-agent).
- → **Anything else that can send an HTTP request**, such as a CI step, a monitoring alert or a cron job. [Start an agent task from any webhook](https://agentrq.com/guidelines/hooks/start-an-agent-task-from-any-webhook-with-the-generic-hook).
- → **A task didn't appear**, or you lost the URL. [Check hook deliveries, replay, rotate and reach your server](https://agentrq.com/guidelines/hooks/check-hook-deliveries-replay-rotate-and-reach-your-server).
- → **A service no built-in hook covers.** [Write your own hook in WebAssembly](https://agentrq.com/guidelines/hooks/write-your-own-agentrq-hook-in-webassembly).

## Before You Start

- → A workspace with an agent connected to it, such as Claude Code. See [connect Claude Code with machines](https://agentrq.com/guidelines/connect-agents/claude-code-and-machines). A task created while the agent is offline waits under **Not started** until it connects.
- → On a self-hosted server, the hook you want must be installed. If it isn't listed under **Events → Hooks → New registration**, the server's operator adds it once: see [install a built-in hook](https://agentrq.com/guidelines/hooks/check-hook-deliveries-replay-rotate-and-reach-your-server#install-a-built-in-hook-on-a-self-hosted-server).
- → The service must be able to reach your server. On agentrq.com it can. On a laptop or a private network, see [making the URL reachable](https://agentrq.com/guidelines/hooks/check-hook-deliveries-replay-rotate-and-reach-your-server#make-the-payload-url-reachable).

## Stay Safe

Anybody who can send a hook a genuine request can start a task. Every hook checks a secret, and the payload URL carries a token, so keep both private. Route only the events you would let that service start. A route to an event whose trigger has [YOLO mode](https://agentrq.com/features/yolo-mode) on, which runs every command without asking, is marked with a warning: without YOLO, the agent still stops for your Allow or Deny before any risky command.

For what Hooks unlock and how they compare with other ways to hand agents work, see the [Hooks feature page](https://agentrq.com/features/hooks) and [which AI coding agents can be assigned tasks from team chat or an issue tracker](https://agentrq.com/blog/which-ai-coding-agents-can-be-assigned-tasks-from-team-chat-slack-or-an-issue-tracker-github-jira).
