Automations, Webhooks and Scripts
A base that only sits there waiting to be looked at is half-used. This chapter covers the three ways NocoDB acts on its own — telling the outside world when something changes, running small programs inside the base, and chaining steps into automations. It is the guide's most documented chapter: the lab's server held no email account, no outside service to call and no second machine to receive a call, so these parts are described from the project's documentation, with one piece of local evidence produced at the end.
Webhooks: the base knocks
A webhook is a standing instruction: when a record is created, updated or deleted in this table (optionally, when it matches a condition), send its contents to this web address. The receiving end can be anything that listens on the web — a chat tool's incoming-webhook address, a small script of your own, another service's API. The classic uses are notifications ("a new fault report arrived") and glue ("copy new orders into the other system"). A webhook is set up per table, in the app, with the event, the condition and the address; NocoDB keeps a log of what it sent — the metadata schema has a table for hook logs, which is the local evidence mentioned below.
Scripts and automations
Scripts are small JavaScript programs that run inside the base, from a button field or by hand, with an API for reading and writing records — the documentation's examples tidy data, copy values between tables and call outside services. Automations (the newer, broader machinery, with workflows in recent versions) chain triggers and actions in the app without code: on a schedule or an event, find records, then send mail, call a webhook, or create and update records, including across bases the account can reach. Both belong to the same family as the API of chapter 9 — a script's record calls and an automation's steps do what your own program would do — with the same rule applying: they act with the permissions of the base they live in, so an automation deserves the same suspicion as an API token when a base's member list changes.
The local evidence
None of that was run here, and the
guide does not pretend otherwise. What
the lab can show is that the machinery
is genuinely present in this build and
not a cloud-only ghost: the metadata
database the lab opened (transcript
t11) contains tables named
nc_hooks_v2 and nc_hook_logs_v2,
nc_automations with
nc_automation_executions, and
nc_workflows — the stored shapes of
webhooks, their delivery log,
automations and workflows, installed
and waiting in the community edition's
own file. What each of them does when
fired, this guide reports from the
documentation; how it is stored, the
lab verified with its own eyes.