# Extract fields and forward valid records to a webhook

Receives JSON or text, extracts the fields you need, checks them, and forwards valid records to your webhook. Invalid records are reported instead of sent.

**Use cases:** Data processing, Automation

**Tags:** json, webhook, validation, branching

[Create this agent](https://seclai.com/agent-examples/create/webhook_pipeline)

## How it starts

Trigger: dynamic input.

## What it needs

No knowledge base, memory bank or connection to create first.

## Steps

- Extract and check the record
- Parse record JSON
- Is the record valid?
  - If yes: Send to webhook
  - Report sent
  - Otherwise: Report rejected
- Show outcome
