Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tools): add Zapier Webhook tool #173

Merged
merged 5 commits into from
Dec 19, 2024

Conversation

anthonydevs17
Copy link
Collaborator

Zapier Webhook Tool

The Zapier Webhook Tool allows AI agents to interact with Zapier's webhook service, enabling seamless integration with thousands of apps and services supported by Zapier.

Purpose

The Zapier Webhook Tool is designed to extend the capabilities of AI agents by allowing them to trigger workflows and automate tasks across various applications using Zapier's webhook functionality. This tool is ideal for scenarios where agents need to interact with multiple services and automate complex workflows.

Features

  • Easy integration with Zapier's webhook service
  • Trigger workflows and automate tasks across thousands of apps
  • Configurable options for webhook events and payloads

Usage

To use the Zapier Webhook Tool, follow these steps:

Configure the Tool: Create an instance of the ZapierWebhook tool with the required configuration.

import { z } from 'zod';

const zapierTool = new ZapierWebhook({
  url: 'https://hooks.zapier.com/hooks/catch/4716958/2sdvyu2', // Set your Zapier webhook URL here
  schema: z.object({
    emailSubject: z.string().describe('The subject of the email.'),
    issuesSummary: z.string().describe('The summary of the issues.'),
  }),
});

Use the Tool: Integrate the tool into your workflow or agent.

const response = await zapierTool._call({
  emailSubject: 'Weekly GitHub Issues Report',
  issuesSummary: 'Summary of the issues found in the repository.',
});

console.log(response);

For questions or discussions, join our Discord.

License

MIT License

@darielnoel
Copy link
Contributor

Closes #172

@darielnoel darielnoel merged commit 161fedd into kaiban-ai:main Dec 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants