Skip to content

GitHub Webhook Setup

This guide walks you through connecting your GitHub repository to the Xianix Agent — from inviting the agent as a collaborator to wiring up the Xians webhook URL so it starts receiving events automatically.

The agent needs write access to your repository so it can post review comments on pull requests.

In your GitHub repository, go to Settings → Collaborators and teams and click Add people. If you’re using Agentri hosted services, invite the xianix-agent GitHub account and grant it the Write role.

In your GitHub repository, navigate to Settings → Webhooks and click Add webhook.

Enter your Xians webhook URL in the Payload URL field, then set Content type to application/json. Leave all other settings at their defaults.

FieldValue
Payload URLPaste the Xians webhook URL from the Agent Studio
Content typeapplication/json
SSL verificationEnable (recommended)

The default rules listen for pull request activity, so select Let me select individual events and enable Pull requests. This fires when a PR is opened, synchronized, or has its reviewers changed — exactly the signals the default rules act on.

EventWhen it fires
Pull requestsPR opened, closed, reopened, synchronized, or reviewer assignments changed

The agent’s rules engine handles finer-grained filtering itself, so you don’t need to restrict events beyond this.

Make sure Active is checked, then click Add webhook. GitHub will immediately send a ping event — a green checkmark confirms the agent is reachable.

The default rules trigger the agent in three situations:

  1. A pull request is opened with the agent listed as a reviewer.
  2. New commits are pushed to a PR that already has the agent as a reviewer.
  3. The agent is requested as a reviewer on an existing PR.

See the PR Reviewer — GitHub rule example for the exact match-any filters and input mappings behind these triggers.

To run your first end-to-end test, open a pull request and request a review from the agent’s GitHub account (xianix-agent on Agentri). Then open the Activity Logs in the Agent Studio — you should see incoming task logs appear within 60 seconds. Within around 5 minutes, the agent will post a review comment directly on the PR.