Create Webhook

BlockWebhooks

Create a webhook in a channel.

Inputs

Channel IDRequired

ID of the channel to create the webhook in.

Webhook NameRequired

Name of the webhook to create.

Outputs

Webhook ID

ID of the created webhook.

Webhook Name

Name of the created webhook.

Webhook Token

Token of the created webhook.

Build a bot using blocks like Create Webhook

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: create_webhook

Inputs

FieldInventScript nameValue
Channel IDchannel_id
Webhook Namewebhook_name

Outputs

FieldInventScript nameValue
Webhook IDwebhook_id
Webhook Namewebhook_name
Webhook Tokenwebhook_token

Example InventScript

webhook := create_webhook(Args{channel_id: trigger.channel_id, webhook_name: "..."})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Webhook ID: " + webhook.webhook_id,
})

More webhooks blocks