For the complete documentation index, see llms.txt. This page is also available as Markdown.

Zapier

Connect TensorX AI to 6,000+ apps with Zapier, the world's most popular automation platform.


Overview

Zapier connects apps and automates workflows without code. Using TensorX's OpenAI-compatible API with Zapier's webhooks, you can add AI to any Zap.

What You Can Build

  • 📧 Smart Email Responses - Auto-draft replies based on content

  • 📋 Form Processing - Analyze and route form submissions

  • 🏷️ Content Tagging - Auto-categorize documents and records

  • 📊 Report Summaries - Generate insights from data

  • 🛒 E-commerce Automation - Product content, review analysis

  • 💬 Multi-Channel Bots - Respond across Slack, Discord, email


Prerequisites

  • Zapier account (Free tier works, Webhooks require paid plan)

  • TensorX API key from app.tensorx.ai


The most flexible way to call TensorX from Zapier.

Step 1: Create a New Zap

  1. Click Create Zap

  2. Choose your trigger (e.g., New Email in Gmail)

  3. Add an action step

Step 2: Add Webhooks Action

  1. Search for Webhooks by Zapier

  2. Select POST as the action event

  3. Configure the webhook:

URL:

Payload Type: json

Data:

Headers:

Key
Value

Authorization

Bearer YOUR_API_KEY

Content-Type

application/json

Step 3: Use Dynamic Content

Replace the user message with data from your trigger:

Step 4: Extract the Response

Add a Formatter by Zapier action:

  • Action: TextSplit Text

  • Input: {{webhooks__choices__0__message__content}}

  • Separator: (leave empty for full text)

Or use Code by Zapier for more control:


Method 2: OpenAI App (With Custom Base URL)

If Zapier's OpenAI integration supports custom endpoints:

Setup

  1. Add OpenAI as an action

  2. In connection settings, look for Advanced or Custom Base URL

  3. Enter: https://api.tensorx.ai/v1

  4. Use your TensorX API key

Note: This method depends on Zapier's OpenAI integration supporting custom URLs. If not available, use the Webhooks method above.


Method 3: Code by Zapier

For complex logic, use JavaScript or Python:

JavaScript Example

Python Example


Example Zaps

1. Email Auto-Classifier

Automatically label and route incoming emails:

Prompt:

2. Form Response Analyzer

Analyze feedback forms and extract insights:

Prompt:

3. Content Generator

Generate social posts from blog articles:

Prompt:

4. Lead Scoring

Score new leads based on their data:

Prompt:

5. Meeting Notes Processor

Transform raw notes into structured summaries:

Prompt:


Working with Responses

Access Response Fields

After the webhook, use Zapier's built-in parsing:

What You Need
Zapier Field Path

AI Response

choices__0__message__content

Model

model

Total Tokens

usage__total_tokens

Clean Up Output

Use Formatter by Zapier:

  1. Trim Whitespace - Remove extra spaces

  2. Replace - Clean unwanted characters

  3. Split Text - Extract specific parts


Task
Model
Why

Classification

deepseek/deepseek-chat-v3.1

Fast, accurate

Summarization

meta-llama/llama-3.3-70b-instruct

Good compression

Analysis

deepseek/deepseek-r1-0528

Deep reasoning

Content Creation

deepseek/deepseek-chat-v3.1

Creative, coherent

Code Tasks

z-ai/glm-5.1

Excellent for coding


Error Handling

Handle API Errors

Add a Paths step after your webhook:

  • Path A: Webhook successful (status = 200)

  • Path B: Error occurred → Send alert

Common Issues

Error
Cause
Fix

401

Invalid API key

Check key in webhook headers

400

Malformed JSON

Validate your JSON structure

429

Rate limited

Add delay between steps

Timeout

Long response

Increase webhook timeout

Retry Logic

Use Zapier's built-in retry:

  1. Click the webhook step

  2. Go to Advanced

  3. Enable Retry on failure


Best Practices

1. Store API Key Securely

  • Use Zapier's App Connections when possible

  • Never expose keys in Zap names or descriptions

2. Optimize for Speed

  • Use concise prompts

  • Set appropriate max_tokens

  • Choose faster models for simple tasks

3. Handle Long Text

For content exceeding limits:

4. Test Thoroughly

  • Use Zapier's Test feature

  • Check edge cases (empty fields, special characters)

5. Monitor Usage

Add a logging step to track:

  • Token consumption

  • Response times

  • Error rates


Pricing Notes

  • Zapier: Webhooks require a paid plan

  • TensorX: Pay per token used

Optimize costs by:

  • Caching repeated requests

  • Using smaller models for simple tasks

  • Batching related operations


See Also

  • API Reference - Complete API documentation

  • Models - Available models

  • Zapier Help - Official Zapier documentation

Last updated

Was this helpful?