Zapier Integration Guide
Send AI agent events from Zapier Zaps to OpsViz using the Webhooks by Zapier action.
How it works in 30 seconds
- 1.Create an agent in OpsViz → get your webhook URL (10 seconds)
- 2.Add one step to your Zapier workflow → paste the URL (2 minutes)
- 3.See costs, tokens, and alerts in real time (instantly)
Set up with AI — copy and paste
The fastest way to add OpsViz monitoring is to paste this prompt into your platform's AI assistant. It sets everything up automatically.
Using Zapier's AI Copilot (recommended)
- 1. Open your Zap in the editor
- 2. Click the + button to add a new step at the end
- 3. Click the AI Copilot icon (sparkle) in the step selector
- 4. Paste this prompt:
Add a step at the end of this Zap that sends a POST request to my OpsViz webhook to track AI usage. The webhook URL is [WEBHOOK_URL]. Send these fields in JSON: event_type as "task.completed", model as the AI model name from the previous step, tokens_in and tokens_out from the AI usage data, cost_usd if available, agent_name as "[Name of this Zap]", and duration_ms if available. Use the Webhooks by Zapier app with a POST action.
If your AI step doesn't expose token counts, that's fine — just send event_type and model. OpsViz will still track the event and estimate the cost where it can.
Using Zapier Agents
If you use Zapier Agents, paste this instruction to your agent:
Add OpsViz monitoring to my [ZAP NAME] Zap. After the AI step, add a Webhooks by Zapier POST step that sends the token usage and cost data to [WEBHOOK_URL]. The payload fields are: event_type, model, tokens_in, tokens_out, cost_usd, agent_name.
Prerequisites
- A Zapier account
- An OpsViz account with an agent created
- Your OpsViz webhook URL
Add a Webhooks step to your Zap
After your AI action step (e.g. ChatGPT action), add a new step: search for Webhooks by Zapier and choose POST.
Configure the webhook
- • URL: your OpsViz webhook URL
- • Payload Type:
json - • Data: fill in the fields below
Map the fields
event_type: task.completed agent_name: [name of this Zap] model: [map from ChatGPT output] tokens_in: [map from ChatGPT usage.prompt_tokens] tokens_out: [map from ChatGPT usage.completion_tokens] status: success
If your AI step doesn't expose token counts, that's fine — just send event_type and model. OpsViz will still track the event and estimate the cost where it can.
Test and publish
Use Zapier's Test step to send a sample event. Verify it appears in your OpsViz dashboard, then publish the Zap.
That's it!
Events will appear on your OpsViz dashboard as they arrive. Check the webhook reference for full payload options.