---
title: "create_chain_link — AI Ability"
description: "Add a chain link — Add a source→target edge to a chain."
url: "https://wpwebhooks.org/docs/ability-create-chain-link/"
---

[WP Webhooks](/) / [Docs](/docs/) / create\_chain\_link

AI Ability since v2.0.0

# create\_chain\_link

Add a chain link — Add a source→target edge to a chain.

Add a source→target edge to a chain. Rejected if it would create a cycle across any chain. Registered as the WordPress Ability `flowsystems-webhook-actions/create_chain_link`, so external AI tools (Claude Code, Cursor) can call it over MCP or REST with a scoped API token.

/ Plan step shape

```
{ "ability": "create_chain_link", "input": { "chain_id": …, "source_webhook_id": …, "target_webhook_id": … } }
```

/ Scope & confirmation

Minimum API-token scope for external (MCP/REST) callers: `full`. Runs without a confirmation pause (the overall plan is still user-approved before execution starts).

/ Input fields

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| chain\_id | param | integer | yes |  |
| source\_webhook\_id | param | integer | yes |  |
| target\_webhook\_id | param | integer | yes |  |

/ Examples

Plan step as the AI Builder proposes it

```
{
  "id": "step_1",
  "ability": "create_chain_link",
  "summary": "…",
  "input": {
    "chain_id": 1,
    "source_webhook_id": 12,
    "target_webhook_id": 15
  }
}
```

/ Related

[create\_chain](/docs/ability-create-chain/)[Webhook Chains](/docs/webhook-chains/)[REST API reference](/webhook-wordpress-plugin-api/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"create_chain_link — AI Ability — Webhook Actions Docs","description":"Add a chain link — Add a source→target edge to a chain.","url":"https://wpwebhooks.org/docs/ability-create-chain-link/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
