Skip to main content

Swarmauri integration tool for posting payloads to Zapier catch-hook webhooks.

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_tool_zapierhook Discord

Swarmauri Tool Zapier Hook

swarmauri_tool_zapierhook is a Swarmauri integration tool for posting payloads to a Zapier catch-hook URL. It is useful for pushing agent outputs into Zapier automations, handing off events to SaaS workflows, and bridging Swarmauri systems with no-code operational pipelines.

Why Use Swarmauri Tool Zapier Hook

  • Forward events from Swarmauri into Zapier automations.
  • Trigger downstream notifications, CRM updates, tickets, or task flows.
  • Keep Zapier integration behind a reusable Swarmauri tool interface.
  • Return structured responses from webhook execution.

FAQ

What input does the tool expect at runtime?
A single string payload, plus a configured zap_url on the tool instance.

How is the payload sent?
The tool posts JSON in the shape {"data": payload}.

What does the tool return?
A dictionary containing zap_response.

How are webhook failures handled?
Non-200 responses raise the underlying HTTP error.

Features

  • Swarmauri ToolBase implementation registered as ZapierHookTool.
  • Posts JSON payloads to Zapier catch-hook URLs.
  • Keeps webhook URL configuration on the tool instance.
  • Returns the Zapier response body as serialized JSON.
  • Supports Python 3.10, 3.11, 3.12, 3.13, and 3.14.

Installation

uv add swarmauri_tool_zapierhook
pip install swarmauri_tool_zapierhook

Usage

from swarmauri_tool_zapierhook import ZapierHookTool

tool = ZapierHookTool(zap_url="https://hooks.zapier.com/hooks/catch/...")
result = tool('{"event":"demo"}')

print(result["zap_response"])

Examples

Trigger a Zap from agent output

from swarmauri_tool_zapierhook import ZapierHookTool

tool = ZapierHookTool(zap_url="https://hooks.zapier.com/hooks/catch/...")
payload = '{"lead":"alice@example.com","source":"agent"}'

print(tool(payload))

Send a monitoring alert

from swarmauri_tool_zapierhook import ZapierHookTool

tool = ZapierHookTool(zap_url="https://hooks.zapier.com/hooks/catch/...")
alert = '{"service":"payments","severity":"critical"}'

tool(alert)

Register the tool in a Swarmauri collection

from swarmauri_standard.tools.ToolCollection import ToolCollection
from swarmauri_tool_zapierhook import ZapierHookTool

tools = ToolCollection(
    tools=[ZapierHookTool(zap_url="https://hooks.zapier.com/hooks/catch/...")]
)
print(tools)

Related Packages

Swarmauri Foundations

More Documentation

Best Practices

  • Treat the Zapier hook URL as a secret.
  • Validate payload structure before shipping high-value events.
  • Wrap calls with retries or circuit breakers if delivery reliability matters.
  • Extend the tool if your Zap requires headers, timeouts, or a different JSON envelope.

License

This project is licensed under the Apache-2.0 License.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarmauri_tool_zapierhook-0.11.0.dev1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file swarmauri_tool_zapierhook-0.11.0.dev1.tar.gz.

File metadata

  • Download URL: swarmauri_tool_zapierhook-0.11.0.dev1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_tool_zapierhook-0.11.0.dev1.tar.gz
Algorithm Hash digest
SHA256 7a43ad12104e14ba18621c8b8893a06c9fb029b060bc85f640a2a41d5e7ebeee
MD5 82944da7081eef8f883b78a35b6bf03c
BLAKE2b-256 a70a7b992f80f53af2367b66509e4c8ac820c18daf886b9718d5dbc3b10b397b

See more details on using hashes here.

File details

Details for the file swarmauri_tool_zapierhook-0.11.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_tool_zapierhook-0.11.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_tool_zapierhook-0.11.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 97c6da7f634171f4eda6ca41de3273cd5bdd9793a233dde676f46ebd86f454d9
MD5 19fe9855a3040182a8a8dd0ea005d2d6
BLAKE2b-256 667d229aff9227880a17a5f41c0819d3100e2752e2c7efb626f6b09c658f9358

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page