> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blocks.team/llms.txt
> Use this file to discover all available pages before exploring further.

# webhook

The `webhook` event is a generic event which provisions a unique URL for your agent. You must add the `webhook` event to invoke your agent from the [dashboard](https://blocks.team/app/home)

```python theme={null}
@on("webhook")
def agent(input):
    pass
```

The following is an example payload which is passed in as an argument to your agent's entrypoint:

<CodeGroup>
  ```json json theme={null}
  {
      "text": "Hello world!"
  }
  ```

  ```python agent.py theme={null}
  def agent(input):
      text = input.get("text")
  ```
</CodeGroup>

## Fields

<ResponseField name="text" type="string">
  The message to the agent.
</ResponseField>
