The LithoBlocks n8n node is currently in development. The steps below will be updated when the node is available. Until then, you can use the LithoBlocks API from n8n’s HTTP Request node and Webhook node.
Prerequisites
- LithoBlocks account and organization
- n8n instance (cloud or self-hosted)
- LithoBlocks n8n node (when available; until then, HTTP Request and Webhook nodes)
- Connecting Slack for your LithoBlocks workspace
Coming Soon: LithoBlocks n8n node
When the LithoBlocks n8n node is released, you will be able to:- Trigger a workflow and send a message to Slack — Use a LithoBlocks node in a workflow to compile a template with your data and send the message to a Slack channel or user. No custom HTTP needed.
- Receive a webhook from LithoBlocks in an n8n workflow — When a button or modal triggers a webhook in LithoBlocks, use a Webhook node to receive it and continue the workflow (e.g. update a database, call another API).
Current workaround: Use the LithoBlocks API from n8n
Until the LithoBlocks n8n node is available, use the HTTP Request node to call the LithoBlocks API and the Webhook node to receive LithoBlocks webhooks.Get an API key
- Log into your LithoBlocks dashboard
- Go to API Keys in your account or organization settings
- Create an API key with the scopes you need (e.g.
templates:read,messages:create) - Copy the key (it is shown only once)
Send a message from an n8n workflow
- In your workflow, add an HTTP Request node.
- Method: POST
- URL:
https://api.lithoblocks.com/templates/{{ $json.template_id }}/compile(or use the send endpoint; replacetemplate_idwith your template ID or a workflow variable). Check the API reference for the exact endpoint and parameters. - Authentication: Generic Credential Type → Header Auth:
Authorization: Bearer YOUR_LITHOBLOCKS_API_KEY(or store the key in n8n credentials and reference it). - Body: JSON with the data your template expects (same shape as sample data). Use n8n expressions to map data from previous nodes (e.g.
{{ $json.user }},{{ $json.expense }}). - The response contains the compiled Slack blocks (compile) or send result (send). Use a subsequent Slack node if you compiled and need to post the blocks yourself, or use the send endpoint so LithoBlocks posts to Slack.
Receive LithoBlocks webhooks in n8n
When a button or modal in LithoBlocks triggers a webhook:- In n8n, add a Webhook node to your workflow (trigger or mid-workflow). Use “Webhook” or “Webhook (Test)” and set the HTTP method to POST.
- Copy the webhook URL n8n provides (e.g.
https://your-n8n.com/webhook/...). - In LithoBlocks, create a Webhook destination with that URL and connect it to your button or modal submission.
- When a user clicks the button or submits the modal, LithoBlocks POSTs the payload to your n8n webhook. The payload is available in the Webhook node output; use it in subsequent nodes (e.g. Set node, HTTP Request, Slack).
{{interaction.user_email}}, {{expense.id}}) so n8n receives the data you need.

