Guides
Ask Immiscible from a Zap
A recipe for Zapier. Webhooks by Zapier asks before the action; when a person has to decide, a second Zap started by a catch hook carries on once they have.
Zapier has no step that waits for an outside service, so a decision that needs a person splits into two Zaps: one asks, the other carries on when Immiscible calls its catch hook.
#Before you start
Make an agent key: Agents, Add an agent, then Collect the agent’s key on its setup page. Every request below sends it as the header x-api-key.
#Zap 2: carry on (make this first)
- Trigger: Webhooks by Zapier, Catch Hook. Copy the webhook URL it gives you.
- Action: Webhooks by Zapier, Custom Request, method
GET, URLhttps://immiscible.fly.dev/v1/actions/followed by theactionIdfield from the trigger, headerx-api-key. This reads the decision with your key; the webhook alone proves nothing. - Filter: only continue if
decisionexactly matchesallow. - Your action: the payment, email or update.
- Action: Webhooks by Zapier, Custom Request, method
POST, URLhttps://immiscible.fly.dev/v1/actions/followed byactionIdand/settle, data{ "status": "completed" }.
#Zap 1: ask
- Your trigger, as now.
- Action: Webhooks by Zapier, Custom Request, method
POST, URLhttps://immiscible.fly.dev/v1/actions/authorize, headerx-api-keyandContent-Type: application/json, data:
{
"type": "payment",
"summary": "Pay the March invoice from Northwind Supplies",
"payment": { "amount": 4200, "currency": "GBP", "merchant": { "domain": "northwind.example" } },
"provenance": [{ "source": "user" }]
}- Paths:
decisionisallow: your action, then settle as in Zap 2, steps 4 and 5.decisionisapproval_required: Custom Request, methodPOST, URLhttps://immiscible.fly.dev/v1/actions/followed byidand/callback, data{ "url": "<the catch hook URL from Zap 2>" }.decisionisdeny: stop, and tell someone why with thereasons.
When the approver decides, Immiscible calls the catch hook with { "actionId", "decision", "status", "decidedAt" } and Zap 2 runs.
#Or by MCP
Zapier’s MCP Client app can call Immiscible’s tools from a Zap or a Zapier agent: server URL https://immiscible.fly.dev/mcp, an agent key as the bearer token.