In this section
Logic Functions
The core building block — trigger types, payloads, and the typed API client.
Skills & Agents
Reusable AI agent instructions and assistants with custom system prompts.
Connections
OAuth credentials your app holds for third-party services — Linear, GitHub, Slack, and more.
Trigger types at a glance
A logic function picks one or more triggers — every entry below is a separate field ondefineLogicFunction():
| Trigger | When it runs | Setting |
|---|---|---|
| HTTP route | A request hits your /s/<path> endpoint | httpRouteTriggerSettings |
| Cron | A CRON expression matches | cronTriggerSettings |
| Database event | A workspace record is created, updated, or deleted | databaseEventTriggerSettings |
| AI tool | A Twenty AI feature decides to call your function | toolTriggerSettings |
| Workflow action | A workflow step invokes your function | workflowActionTriggerSettings |
defineApplication().
Install-time hooks — code that runs before or after the install — share this runtime but use their own define functions and live under Config → Install Hooks.