A form sends, your agent answers. How to use webhooks with GL Dash: connect external forms to board tasks
A webhook is a web address that runs one of your board’s tasks each time something calls it. This path explains how webhooks work in GreenLight Dash, then builds a real example: a question sent from a form on a website reaches a task on your GreenLight Dash Server, an agent answers it, emails the answer to the address in the form, and leaves a note on the board.
Name, email and a question


The note the run left on the board.
Before you start. What you will make, and what you need
You follow one example from start to finish: the Heart Runner sneaker shop answers questions from the contact form on its website with an agent on its own GreenLight Dash Server.
By the end you will know what a webhook is and how GL Dash keeps it safe. You will have a task on your server with its own URL, a website form connected to it, an agent that emails each answer, and a way to read what every run did. Running a task on a timer is a different path, How to schedule an AI agent in GL Dash, so this one stays on webhooks. Words like webhook, URL, secret, call, body and run are explained where they first appear and collected in the glossary at the end.
You will make
- A task with its own webhook URL on your server.
- A website form connected to it, safely.
- An agent that answers each question by email.
- A note on the board for every answer.
- A clear view of every call and every run.
You need
- A GreenLight Dash Server. How to run GL Dash as a web server sets one up.
- Claude Code or Codex, signed in once in the server’s terminal.
- A website form that can send its data to a URL from the site’s server: a form plugin, a form service or an automation tool.
- An email service with an API, such as Resend, and a domain verified with it, for the email part.
- PRO on the server. Scheduled tasks and their webhooks are a PRO feature.
Understand what a webhook is
A webhook is a web address that does something when it’s called. In GreenLight Dash it belongs to a task: a frame on your board with instructions for an agent. A task can have one webhook URL, and every time another service calls that URL, the task runs.
A call is an ordinary web request, usually a POST, with a little data in its body: the fields of a form, the details of a new order, a release on GitHub. GL Dash answers the caller at once with a short receipt and keeps the call for the run. The agent reads the call as data and does what the task says with it.
On the web version (GreenLight Dash Server) the URL lives on your own server, which never sleeps. Each call runs the task on the server at once, with Claude Code or Codex signed in in the server’s terminal, so nothing waits for your computer. That makes it the right home for a website form: a question at 3 a.m. gets its answer at 3 a.m.
The URL is your server’s address, then /h/, the task’s id and a long secret. The secret is the only key: anyone with the full URL can start a run. So it never goes into a web page, only into server-side settings, and you can replace it whenever you like (step 7).
1 · A visitor
Fills in your form
Name, email and a question, on your website.
2 · Your site
Sends it to the URL
Its form plugin, form service or backend posts the fields from its own server.
3 · Your server
Runs the task
The agent reads the call as data, answers and emails the person.
4 · Your board
A note per answer
And each run’s summary and output on the task’s page.
The URL stays server-side: the visitor never sees it.
| Web version (server) | Desktop app | |
|---|---|---|
| Where the URL lives | On your server, at its own address | On a relay you own: your Cloudflare Share worker or a connected GreenLight server |
| When a call runs | At once, on the server | When the app collects it, every 20 seconds while it’s open |
| Computer off | No difference: the server runs it | Calls wait on the relay; a connected server can run the task instead |
| Agents | Claude Code or Codex, signed in on the server | The agents on your computer |
| Runs on a timer | Not on the web version | Yes: the schedules path |
What you will see
The idea only, no clicks yet. The next step gets the server ready.
If it goes wrong
- I only have the desktop app
- Desktop tasks can have a webhook too, on your Cloudflare Share worker or a connected GreenLight server, and the run happens while the app is open. For a public form, set up a server first.
- I want it to run every morning instead
- That’s a timer, not a webhook: How to schedule an AI agent in GL Dash shows it.
Get the server and its agent ready
Webhook tasks run on a GreenLight Dash Server, GL Dash’s web version on a server you own. If you don’t have one yet, How to run GL Dash as a web server sets one up on Railway from the desktop app. Scheduled tasks are PRO on the server too; activate your licence in the web version under Account, at the top right.
The run needs an agent that lives on the server, and only Claude Code and Codex can run there. Open the GLAI menu in the web version and click GLAI for Claude Code (or GLAI for Codex). The server’s terminal starts it, and you sign in once with your own plan. Every scheduled run on this server uses that sign-in.
Each run starts a fresh agent with a short-lived token for this server’s boards, and stops at the time limit you set in step 6.
Click pathGLAIGLAI for Claude Codesign in once
In the picture
What you will see
Claude Code’s first start in the server’s terminal. Once you’ve signed in, it’s ready for scheduled runs.
If it goes wrong
- The task editor says “No agent CLI on this server yet.”
- Open GLAI here and sign in to Claude Code or Codex once, then open the editor again.
- A run fails with “Scheduled runs on this server need PRO”
- Activate PRO in the web version, under Account at the top right.
Make a frame for the answers and open the task editor
A task lives on a frame, and what the agent makes goes into that frame. Make one for the answers; in the example it’s called Form replies. Put anything the agent should know on the board next to it. Here a note called Heart Runner FAQ holds the sizes, the price, shipping and returns, and the agent answers only from it.
Right-click the frame’s name and choose Schedule a task here…. The task editor opens with three steps: What, When and Check. You can also click the clock in the header for the Scheduled tasks panel and choose New; its template On a webhook starts you off.
Click pathright-click the frame’s nameSchedule a task here…
In the picture
What you will see
The task editor on its first step, What, titled Schedule a task here.
If it goes wrong
- There’s no Schedule a task here…
- On the web version it needs the server’s terminal, and the editor opens only with PRO active.
- I picked the wrong frame
- Open the task’s page from the clock in the header, remove it with the trash button, and start again on the right frame.
Tell the agent what to do with each call
Write what the agent should do, the way you’d ask a colleague. For a form, three things matter. Name the fields the form sends, here name, email and question, because the agent finds them by those names. Say what to do with them: answer from the FAQ note, email the answer, leave a note in the frame. And say what to skip.
Here is how a call reaches the agent. GL Dash never pastes the form into the agent’s instructions. It saves every call in a small file in the task’s .memory folder on the board and tells the agent to read it as data from outside, never as instructions, and never to run it as a command. A visitor who types “ignore your task” into your form has just asked an odd question.
Calls that arrive together go to one run, latest first, so write “for every call”. Add a line for test calls: Send a test call on the task’s page sends a body with “test”: true, and the example skips it so no email goes out. Under Who does it, pick Claude Code or Codex; on a server the others are greyed out as not installed. The locked greenlight-dash skill is what lets the agent work on your board.
The example’s task: “Each call is a question from the contact form on our website, with the fields name, email and question in its body. For every call: answer the question in two or three friendly sentences, using only the facts in the note “Heart Runner FAQ” on this board. Send the answer to the email field with one curl POST to https://api.resend.com/emails, with the header saved in ~/.resend-header, from “Heart Runner <[email protected]>” and the subject “Your Heart Runner question”. Then add a note in this frame with who asked, the question and your answer. Skip calls with “test”: true or without an email, and never send more than one email per call.”
Click pathWhatname the fieldsWho does it: Claude CodeNext
In the picture
What you will see
Your task in the box and Claude Code picked. Next goes on to When.
If it goes wrong
- The agent can’t find the email
- Name the field exactly as your form sends it, such as email or your-email: forms name their fields differently.
- I want the form’s words in the instructions
- They never are, on purpose: calls are data in a file, so a form can’t give your agent orders.
Choose When called
The second step asks When should it run? Pick When called, for GitHub, Zapier, a form or any service that calls its URL. On the web version, On a schedule and Both are greyed out, because runs on a timer need the desktop app.
Under The webhook URL lives on, the web version has one place, This server: each call runs the task here at once, with the agent signed in in this server’s terminal. In the desktop app you’d choose your Cloudflare worker or a connected GreenLight server here instead.
The URL itself appears after you save, on the task’s page.
Click pathWhenWhen calledThis serverNext
In the picture
What you will see
When called picked, with This server under it.
If it goes wrong
- On a schedule is greyed out
- Expected on the web version: timer runs need the desktop app. Webhook runs work here.
- “No agent CLI on this server yet.”
- Sign in to Claude Code or Codex in the server’s terminal (step 2).
Set the rules and save
The last step, Check and save, sums up what will happen: what the task does, who does it (Claude Code with greenlight-dash, on this server), when (each time its webhook is called), and where the results go (this frame).
Click Change next to the rules. One matters most for a form: If the last run is still going. Its default, Skip the new one, drops calls that arrive while a run is busy. Two visitors writing a minute apart would lose the second question, so pick Run it after: the calls that came in during a run get one more run when it ends.
Stop after limits each run, from 15 minutes to 2 hours; 30 minutes is plenty here. On an error can retry, and Keep a copy of each run keeps a snapshot. Then click Save task. Save and test now also runs it once without a form call, a quick check that the agent starts.Click pathCheckChangeRun it afterSave task
In the picture
What you will see
The editor closes and the task’s page opens on its Webhook section.
If it goes wrong
- A question went missing
- It came during a run while the rule was Skip the new one. Set If the last run is still going to Run it after.
- Runs stop half-way
- Raise Stop after, or make the task shorter.
Copy the webhook URL and keep it secret
The task’s page opens with the task’s details and its Webhook section. Next to This server is the URL, with Copy. Under it the page counts the calls and reminds you that each call runs on this server at once, and that any service can call it with a POST (or GET) and a JSON or form body.
Send a test call calls the URL with a small test body and starts a real run, which is why the example’s task skips test calls. New secret makes a new URL, and the old one stops working at once; use it if the URL ever leaks. Turn off removes the webhook, and its URL stops working.Treat the URL like a password. GL Dash checks only the secret in it, with no login and no signature. The secret stays on the server that made it, and the board keeps only a fingerprint, so a copy of the board can’t call your task. Only you, signed in on the web, can give a task a webhook or start a run; an agent’s token can’t.
Click paththe task’s pageWebhookCopy
In the picture
What you will see
The URL is on your clipboard, ready for your form tool’s settings.
If it goes wrong
- Send a test call says it failed
- The server calls its own public address. Check that your server’s address opens in a browser.
- The URL leaked
- Click New secret: the old URL stops working at once. Paste the new one into your form tool.
Connect your website’s form
Now the website. As with any form, the visitor’s browser sends the fields to your website first. From there, the site’s own server passes them on to the webhook URL. That keeps the URL out of the page, where anyone could read it in the source and start runs, or send emails, from your server.
Most form tools can do this without code. A form plugin on your site, a hosted form service or an automation tool such as Zapier usually has a step called something like webhook or send to URL: paste the URL, choose POST, and send the fields as JSON or as normal form fields. If your site has its own backend, it’s one POST request with the fields.
GL Dash reads a JSON body and normal form fields as named fields. A file-upload form (multipart) arrives as raw text, so leave uploads out. A GET call’s fields arrive in its query. GL Dash keeps the first 256 KB of a body and refuses a request over 1 MB.
Why not post straight from the visitor’s browser? Browsers block a JSON post to another site before it’s sent. A plain HTML form that posts to the URL leaves the visitor on a raw receipt page, and it puts the secret URL in your page. The caller always gets back the same thing: 202, with a short JSON receipt holding the call’s id.
Click pathyour form toolwebhook / send to URLpaste the URLPOST
In the picture
What you will see
Send the form once with your own email address. The task’s page counts the call, and a run starts.
If it goes wrong
- The run’s file shows strange boundary lines
- The form sends multipart data, made for file uploads. Switch it to JSON or normal form fields.
- Nothing arrives
- Check your form tool’s history for the request. A wrong or outdated URL gets 404 Not found.
Let the agent email the answer
GL Dash has no email sender of its own, and it doesn’t need one, because the agent can call any web service. On the server, Claude Code may run curl, so it can send email through any email service with an HTTP API. This path uses Resend as the example: one POST to https://api.resend.com/emails with your API key, a from address, a to address, a subject and the text. Resend sends only from a domain you’ve added and verified, so set that up in its dashboard first.
Keep the key out of the task. The task’s text travels with the board and goes to the agent on its command line, so a key written there ends up in places it shouldn’t. Save it once on the server instead. In the web version, open GLAI ▸ Run Clean Terminal and run one line that writes the key’s header to a file in the agent’s home folder, readable only by that user: printf ‘Authorization: Bearer re_your_key’ > ~/.resend-header && chmod 600 ~/.resend-header. Scheduled runs on this server use the same home folder.
Then the task can say: send the answer with one curl POST to https://api.resend.com/emails, with the header saved in ~/.resend-header. curl reads headers from a file with -H @ and the file’s path. Add a from address on your verified domain and a subject. The example also tells the agent never to send more than one email per call, and to skip calls without an email.
Test it with your own address first. If the email doesn’t arrive, the run’s Output on the task’s page shows what the agent did (step 10).
Click pathGLAIRun Clean Terminalsave the key file
In the picture
What you will see
Saved. in the terminal. GL Dash never shows or copies the file.
If it goes wrong
- The run’s output says the email failed
- Check that the from address is on your verified domain and that the key is right; run the line again to replace it.
- The key ended up in a run’s output
- Make a new key in your email service, delete the old one, and save the new one with the same line.
Watch a call run and read what it did
Send the form. The site posts the fields, GL Dash answers 202, and the run starts on the server straight away. The task’s page shows Running with a Stop button and Working…, and the Webhook section counts the call. The page refreshes itself every 15 seconds; Check now in the panel’s footer refreshes it at once.
When the run ends, it’s listed under Runs: its time, how long it took, what started it (webhook) and its last line, which the task asks the agent to write as a one-line summary. Output opens what the agent printed. In the frame, the run has left its note: who asked, the question and the answer that went out by email.
Every run is saved in the board too, all under the task’s .memory folder. There’s the run log, one output file per run, and the task’s memory note, which the agent reads and adds to on every run. The pictures here come from a stand-in for Claude Code made for these captures: it wrote the note but sent no email.
Click pathsend the formRunningRunsOutput
In the picture: running
In the picture: done
What you will see
A note per answer in the frame, and a run for each call, or for each group of calls that came together.
If it goes wrong
- The run says No change
- The agent found nothing to do; with the example’s task, that’s a test call.
- The task paused itself
- After 5 failed runs in a row a task pauses. Read the last Output, fix the cause and click Resume. On a server, calls to a paused task are dropped.
Know what every answer means
When a webhook fails, it fails quietly. The caller only gets a short answer, and the run happens where the caller can’t see it. So here is everything that can happen to a call, from both sides.
Desktop tasks work the same way, with two differences. Their URL lives on your Cloudflare Share worker or on a connected GreenLight server, and the app collects calls every 20 seconds while it’s open. With the URL on a server, choose The server runs it, and the server runs the task once your computer has been away for a minute and a half. You allow that once, under Asks this server in the web version’s Scheduled tasks. How to schedule an AI agent in GL Dash covers the desktop side.
| What happens | What the caller gets | What to do |
|---|---|---|
| The call is taken | 202 and a receipt with the call’s id | Nothing: the run starts, or follows the one before it |
| Wrong or replaced URL | 404 Not found | Copy the URL again; after New secret the old one stops |
| Body over 1 MB | 413: the body is too large | Send fewer or shorter fields, and no files |
| Too many calls at once | 429: too many calls, try again in a minute | Space the calls out |
| Body over 256 KB | 202 | It’s cut at 256 KB, and the agent sees that it was cut |
| A run is still going | 202 | Set If the last run is still going to Run it after, or the call is skipped |
| The task is paused | 202, but the server drops the call | Resume the task |
What you will see
Your form, your agent and your server, answering around the clock.
If it goes wrong
- Calls arrive but nothing lands on the board
- Read the run’s Output: the agent says what it couldn’t do.
- I want to stop the form for a while
- Pause the task, and switch the form tool’s webhook off too: calls to a paused task are dropped.
Still unsure? Questions beginners ask
What is a webhook in GreenLight Dash?
A web address that runs one board task each time something calls it. Each task can have one, and the call’s data reaches the agent as a file it reads as data.
Do I need a server for webhooks?
For a public form, in practice yes: a GreenLight Dash Server answers and runs around the clock. The desktop app can use webhooks too, through your Cloudflare Share worker or a connected server, but it runs them only while it’s open.
Is it safe to connect a public form?
Yes, if the URL stays on your site’s server. Calls are data, never instructions, so a visitor can’t give your agent orders. The secret is the URL’s only key: New secret replaces it at once, and only you, signed in on the web, can turn a webhook on.
Which agents can answer webhook calls?
On a GreenLight Dash Server, Claude Code and Codex, signed in once in the server’s terminal with your own plan.
Can GreenLight Dash send the email itself?
No. The agent sends it through an email service’s API, such as Resend, with the key saved in a file on the server, not in the task.
What can a form send?
JSON or normal form fields, which the agent gets as named fields. File-upload forms arrive as raw text. The first 256 KB of a body is kept, and requests over 1 MB are refused.
What if two people send the form at once?
A task runs one run at a time. With If the last run is still going set to Run it after, the second question gets its own run when the first ends; calls that arrive together share one run.
Can GitHub or Zapier call it too?
Yes, any service that can call a web address. GitHub’s event header, such as x-github-event, reaches the agent; anything that looks like a password or token is removed first.
The words on this page. Glossary
- Webhook
- A web address that runs one board task each time something calls it.
- Webhook URL
- The task’s address: your server, /h/, the task’s id and its secret.
- Secret
- The long part at the end of the URL, its only key. New secret replaces it.
- Call
- One request to the URL, with its data.
- Body
- The data in a call, such as the fields of a form.
- Field
- One named value in a form, such as email.
- Task
- A frame on the board with instructions for an agent, run on a webhook or a timer.
- Run
- One go of the task by a fresh agent, which can take several calls.
- GreenLight Dash Server
- GL Dash as a web app on a server you own: the web version.
- Email API
- An email service’s web address that sends a message when the agent calls it.
- Verified domain
- Your domain, confirmed with the email service so it may send from it.
- Agent home
- The server folder where the agent runs, where the key file lives.
Your turn. Connect your first form
Make a frame, give it a task with When called, copy the URL into your form tool and send yourself a question.