For the complete documentation index, see llms.txt. This page is also available as Markdown.

Webhook

Learn the specifics of developing a webhook plugin.

Select the running environment

The first step in developing a new webhook plugin is to determine which environment to use:

  • Python

  • NodeJS

Create the file structure

Set up a directory structure with the following files:

β”œβ”€β”€ src
β”‚   β”œβ”€β”€ control.py or control.js  
β”‚   β”œβ”€β”€ function.py or function.js
β”‚   β”œβ”€β”€ user_code.py or user_code.js
β”‚   β”œβ”€β”€ view.xml
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ manifest.toml 

control, function, and user_code scripts

Fill these files with the content you need according to the table below, then save them.

Script
Executed
Purpose

control

Only once when the plugin is created

Perform one-time setup tasks

function

Triggered by a webhook

Perform any task

user_code

Triggered by a webhook if invoked by the function script

Perform any task

view.xml

Populate this file with content based on the form you'd like displayed when creating this plugin.

LICENSE and README.md

Write the contents of the README.md and LICENSE files.

manifest.toml

According to the Webhook section of the Private Plugins page, manifest.toml should look like this:

Compressing the files

Compress the files into a ZIP archive from the root of the file structure, not the parent folder.

Last updated

Was this helpful?