Blocks Documentation home page
Search...
⌘K
About
What is Blocks?
Getting Started
Installation
API Keys
CLI
Agents
Decorators
Events
Environment Variables
Config Model
CLI
configure
create
init
push
Events
github.issue_comment
github.pull_request_comment
github.pull_request_review_comment
linear.issue_comment
schedule.daily
schedule.weekly
slack.mention
webhook
Decorators
@agent
@on
SDK
bash
experimental_bash
config
git
repo
Dashboard
Blocks Documentation home page
Search...
⌘K
Dashboard
Dashboard
Search...
Navigation
Agents
Events
Agents
Events
Events are what trigger agents, and each event has some unique payload schema which is passed in as an argument into an agent’s entry point. For an exhaustive definiton of each event and schema, please refer to the
Events API
.
agent.py
Copy
@on
(
"github.pull_request_comment"
)
def
agent
(
event
):
files_changed
=
event.get(
"files_changed"
)
For our beta release, we currently support a subset of Github, Slack, and Linear webhook events along with basic scheduling and webhook support.
If there is a specific event you’d like to see supported, please reach out to one of our founders:
tomislav@blocksorg.com
or
alejandro@blocksorg.com
.
Previous
Environment Variables
Next
Assistant
Responses are generated using AI and may contain mistakes.