LLM Guides

Add AI to Activepieces Automations Using LLMAPI

Jun 28, 2026

Most automations are good at moving data.

A new email arrives. A form is submitted. A row appears in a spreadsheet. A Slack message gets posted. Activepieces can connect those events and pass information from one app to another.

AI makes those workflows more useful because it can understand the data before the next step happens.

Instead of sending every support ticket to the same inbox, you can classify it first. Instead of dumping every lead into a CRM, you can score it first. Instead of asking your team to read 200 survey responses, you can summarize them first. Instead of writing custom code for every text task, you can call an LLM inside the automation.

That is where Activepieces and LLMAPI work well together.

Activepieces gives you the visual automation builder. LLMAPI gives you one API gateway for calling many large language models through a unified interface. Together, they let teams add AI steps to automations without building a full backend app from scratch.

In this guide, we’ll walk through how to add AI to Activepieces automations using LLMAPI, with examples for support, sales, content, operations, and developer workflows.

Why this guide is worth reading

Our team has spent around 6 years working with AI APIs, SaaS platforms, developer tools, automation workflows, and content systems. For this article, we also reviewed official Activepieces documentation, LLMAPI docs, and research on LLM tool use, workflow automation, and retrieval-based AI systems.

The practical lesson from that research is simple: LLMs become more useful when they are connected to tools, data, and clear workflows.

The ReAct paper showed how language models can combine reasoning with actions, such as calling tools or using external information. The Toolformer paper explored how models can learn to use APIs for tasks like search, translation, and calculation. A newer survey on LLM agent workflows also describes workflow structure as a key part of making AI systems more scalable, controlled, and secure.

That is exactly the role Activepieces can play. It gives the AI a structured workflow around the model call.

What activepieces does

Activepieces is an open-source automation platform for building workflows across apps. It works in the same general category as tools like Zapier, Make, and n8n, but with a strong open-source and developer-friendly angle.

The official Activepieces docs describe “pieces” as npm packages written in TypeScript. These pieces act as integrations, actions, and triggers inside the builder.

A basic Activepieces flow looks like this:

Trigger

Step 1

Step 2

Condition or branch

Final action

For example:

New Typeform response

Send response text to AI

Classify the request

Create a row in Google Sheets

Notify the right Slack channel

Activepieces supports common automation patterns such as:

PatternExample
App triggerNew form submission, new email, new row
Webhook triggerExternal app sends data into Activepieces
Scheduled triggerRun every day, hour, or week
HTTP requestCall an external API
BranchingRoute based on AI output
LoopsProcess multiple items
Custom piecesBuild your own TypeScript integration

The Activepieces webhook trigger docs are useful if you want another app to start your flow with an HTTP request. The trigger overview also explains polling and webhooks as common trigger patterns.

What LLMAPI adds

LLMAPI is a unified API gateway for large language models. Its official site describes support for routing requests across many models, centralized key management, cost-aware analytics, provider breakdowns, and reliability monitoring.

The LLMAPI quickstart shows an OpenAI-compatible chat completions request using this endpoint:

https://api.llmapi.ai/v1/chat/completions

That matters for Activepieces because the HTTP step can call this endpoint directly.

A simple LLMAPI request looks like this:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You classify customer messages.”

    },

    {

      “role”: “user”,

      “content”: “The customer says: I have been waiting three days and nobody replied.”

    }

  ]

}

LLMAPI is useful in Activepieces because automations often need different AI tasks:

TaskExample
Classification“Is this support ticket urgent?”
Summarization“Summarize this call transcript in 5 bullets.”
Data extraction“Extract company name, budget, timeline, and pain point.”
Rewriting“Rewrite this reply in a warmer tone.”
Routing“Send sales leads to the correct team.”
Moderation“Flag risky or abusive content.”
Translation“Translate this customer message to English.”
Scoring“Rate this lead from 1 to 5.”

You can use one model for cheap classification, another model for complex reasoning, and another model for content writing. LLMAPI’s gateway approach helps keep that model access in one place.

Why Add AI to activepieces?

Activepieces already moves data between tools. AI helps decide what should happen to that data.

Here are a few common examples.

WorkflowWithout AIWith AI
Support ticketsEvery ticket goes to the same queueAI classifies urgency and topic
Sales leadsEvery lead enters the CRM equallyAI scores the lead and extracts key details
SurveysTeam reads responses manuallyAI summarizes patterns and sentiment
Content workflowWriter copies briefs across toolsAI creates a draft brief or outline
Finance operationsTeam reviews notes manuallyAI extracts payment terms and missing fields
HR inboxEvery message needs manual sortingAI routes messages by category

This is where LLM workflow research becomes relevant. The ReAct paper showed that models can perform better when reasoning is connected to actions. In business automation, the “actions” are usually things like creating a ticket, sending a Slack message, writing to a spreadsheet, or calling another API.

Activepieces gives you that action layer.

The basic architecture

The cleanest setup is:

App event happens

Activepieces flow starts

Activepieces sends text or data to LLMAPI

LLMAPI sends request to selected model

Model returns structured output

Activepieces uses that output in the next step

For example:

New support email

Activepieces extracts email body

HTTP request sends email body to LLMAPI

LLM returns JSON:

{

  “category”: “billing”,

  “urgency”: “high”,

  “summary”: “Customer was charged twice.”

}

Activepieces branches by category

Billing team gets notified

The main thing is to ask the model for structured output. Free-form text is fine for summaries. JSON is better for automation.

Use case 1: Classify support tickets

Support triage is one of the best first AI automations.

The workflow:

New support ticket

Send ticket text to LLMAPI

Classify topic and urgency

Route to the right team

Create internal summary

Example prompt:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You classify support tickets. Return only valid JSON with category, urgency, sentiment, and summary.”

    },

    {

      “role”: “user”,

      “content”: “Ticket text: {{ticket_text}}”

    }

  ],

  “temperature”: 0.2

}

Expected output:

{

  “category”: “billing”,

  “urgency”: “high”,

  “sentiment”: “frustrated”,

  “summary”: “Customer says they were charged twice and wants a refund.”

}

In Activepieces, the next step can branch:

AI outputAction
category = billingSend to billing Slack channel
urgency = highCreate priority ticket
sentiment = frustratedNotify support lead
category = technicalSend to engineering queue

Research supports this general direction because LLMs are strong at text classification and summarization when the task is clearly framed. The Toolformer paper is useful here because it shows how API-based tool use can extend what language models do in real systems.

Use case 2: Summarize sales leads

Sales teams often get messy lead data from forms, emails, webinars, chatbots, and meetings.

A simple Activepieces + LLMAPI workflow can turn that data into a useful CRM note.

New lead form

Send form fields to LLMAPI

Extract buying intent, budget, timeline, and pain point

Score lead

Create CRM record

Notify sales rep

Example prompt:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You analyze sales leads. Return only valid JSON.”

    },

    {

      “role”: “user”,

      “content”: “Analyze this lead: {{lead_payload}}. Return company, role, pain_point, timeline, budget_signal, lead_score, and next_step.”

    }

  ],

  “temperature”: 0.1

}

Expected output:

{

  “company”: “Acme Logistics”,

  “role”: “Operations Manager”,

  “pain_point”: “Manual shipment status updates”,

  “timeline”: “This quarter”,

  “budget_signal”: “medium”,

  “lead_score”: 4,

  “next_step”: “Send case study and book discovery call”

}

This is useful because it gives sales teams cleaner context before they open the CRM.

Use case 3: Turn form responses into content briefs

Marketing and content teams can use Activepieces to collect ideas, feedback, campaign notes, or SEO requests.

The workflow:

New form submission

LLMAPI turns raw notes into a content brief

Activepieces creates a Google Doc or Notion page

Slack notification goes to the writer

Prompt:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You create concise content briefs for a marketing team.”

    },

    {

      “role”: “user”,

      “content”: “Create a content brief from this request: {{form_response}}. Include title, audience, search intent, outline, key points, and CTA.”

    }

  ],

  “temperature”: 0.4

}

This is a good example of AI as a drafting step. The automation creates a starting point, and the human edits it.

Use case 4: Extract data from emails

Many operations workflows still depend on messy email text.

Examples:

  • Vendor quotes
  • Invoice notes
  • Customer requests
  • Appointment messages
  • Job applications
  • Contract updates
  • Shipping notices

You can use LLMAPI to extract structured data.

New email

Send subject and body to LLMAPI

Extract important fields

Write fields to spreadsheet

Notify owner if anything is missing

Prompt:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “Extract structured data from emails. Return only valid JSON.”

    },

    {

      “role”: “user”,

      “content”: “Extract vendor_name, due_date, amount, invoice_number, missing_fields, and summary from this email: {{email_body}}”

    }

  ],

  “temperature”: 0

}

Expected output:

{

  “vendor_name”: “Northline Supplies”,

  “due_date”: “2026-07-15”,

  “amount”: “$1,240.00”,

  “invoice_number”: “INV-2088”,

  “missing_fields”: [],

  “summary”: “Vendor sent invoice INV-2088 for $1,240 due July 15, 2026.”

}

This is one of the most practical AI automation patterns because it turns unstructured text into fields that other tools can use.

Use case 5: Create a daily AI digest

A daily digest is useful for Slack, email, CRM updates, project management tools, and customer feedback.

Every weekday at 9 AM

Collect new tickets, leads, or tasks

Send list to LLMAPI

Generate short digest

Post to Slack

Prompt:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You create concise daily business digests.”

    },

    {

      “role”: “user”,

      “content”: “Summarize these updates for a team lead. Include urgent items, blockers, wins, and suggested next actions: {{updates}}”

    }

  ],

  “temperature”: 0.3

}

This fits teams that want fewer dashboards and cleaner summaries.

The Retrieval-Augmented Generation paper is relevant here because it explains the value of giving models external context instead of relying only on model memory. In Activepieces, that context can come from apps like Google Sheets, Airtable, HubSpot, Zendesk, Notion, Slack, or your own API.

Step-by-step: Call LLMAPI from activepieces

Here is the practical setup.

Step 1: Create the activepieces trigger

Start with the event that should launch the automation.

Common triggers:

TriggerExample
WebhookYour app sends data into Activepieces
New form submissionTypeform, Tally, Google Forms
New spreadsheet rowGoogle Sheets or Airtable
New emailGmail or Outlook
ScheduleDaily summary every morning
New CRM recordHubSpot or similar CRM

If your source app supports webhooks, use an Activepieces webhook trigger. The Activepieces webhook docs explain how webhook-based triggers work.

Step 2: Add an HTTP request step

Add an HTTP request action in Activepieces.

Use:

FieldValue
MethodPOST
URLhttps://api.llmapi.ai/v1/chat/completions
HeaderContent-Type: application/json
HeaderAuthorization: Bearer YOUR_LLMAPI_KEY

The LLMAPI quickstart uses the same chat completions endpoint and bearer token style.

Step 3: Add the JSON body

Use a JSON body like this:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You are an automation assistant. Return only valid JSON.”

    },

    {

      “role”: “user”,

      “content”: “Classify this message: {{message_text}}”

    }

  ],

  “temperature”: 0.2

}

In Activepieces, you can insert values from earlier steps using the data picker. For example, {{message_text}} may come from a form answer, email body, webhook payload, spreadsheet cell, or CRM field.

Step 4: Ask for structured output

For automations, structured output is usually safer.

Example:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “Return only valid JSON. No markdown. No extra comments.”

    },

    {

      “role”: “user”,

      “content”: “Analyze this support request: {{ticket_text}}. Return category, urgency, summary, and next_action.”

    }

  ],

  “temperature”: 0

}

The model should return something like:

{

  “category”: “technical_support”,

  “urgency”: “medium”,

  “summary”: “User cannot connect their account to the dashboard.”,

  “next_action”: “Ask for screenshot and account email.”

}

Then Activepieces can use those fields in later steps.

Step 5: Add branches

Use branches to decide what happens next.

ConditionAction
Urgency is highNotify team lead
Category is billingSend to finance queue
Lead score is 5Create high-priority CRM task
Missing fields existSend follow-up email
Summary contains riskSend to review queue

This keeps the flow predictable.

Better prompt patterns for activepieces

A good automation prompt should be boring, clear, and specific.

Use this structure:

Role:

You are a support operations assistant.

Task:

Classify the message.

Rules:

Return only JSON.

Use one of these categories: billing, technical, account, sales, other.

Use urgency: low, medium, high.

Keep summary under 30 words.

Input:

{{message}}

Example JSON body:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You are a support operations assistant. Return only valid JSON.”

    },

    {

      “role”: “user”,

      “content”: “Task: Classify this message.\nRules: category must be billing, technical, account, sales, or other. urgency must be low, medium, or high. summary must be under 30 words.\nInput: {{message}}”

    }

  ],

  “temperature”: 0

}

Low temperature is useful for classification and extraction because you want consistent results.

Higher temperature can work for creative tasks like writing content drafts, email variations, or brainstorming.

When to use which model

LLMAPI supports many models through one gateway, according to its models page and official site. That gives teams room to pick models by task.

TaskModel style to test
ClassificationFast, low-cost model
JSON extractionReliable instruction-following model
SummarizationBalanced general model
Creative writingStrong writing model
Coding supportCode-capable model
Long documentsLong-context model
Sensitive workflowsStronger model with stricter validation

This is one of the reasons an API gateway helps. Activepieces can keep the same HTTP request structure while your team changes the model behind the request.

LLMAPI’s official site mentions cost-aware analytics, per-model/provider breakdowns, and reliability monitoring. Those features are useful when automations start running hundreds or thousands of AI calls per day.

Example: AI lead routing flow

Here is a full example for sales.

New website form submission

HTTP request to LLMAPI

AI returns lead score and sales notes

Branch by lead score

High score: create CRM task and Slack alert

Low score: add to nurture list

Prompt:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You score B2B sales leads. Return only valid JSON.”

    },

    {

      “role”: “user”,

      “content”: “Lead data: {{lead_data}}\nReturn: lead_score from 1 to 5, fit_reason, pain_point, suggested_reply, and routing.”

    }

  ],

  “temperature”: 0.2

}

Expected output:

{

  “lead_score”: 5,

  “fit_reason”: “Company needs workflow automation and has a clear timeline.”,

  “pain_point”: “Manual customer support routing”,

  “suggested_reply”: “Thanks for reaching out. We can help automate support routing and AI ticket triage. Would you like to schedule a 20-minute call this week?”,

  “routing”: “sales_priority”

}

Activepieces can then:

OutputNext step
lead_score = 5Notify sales in Slack
routing = sales_priorityCreate CRM task
suggested_replyDraft email
pain_pointAdd CRM note

Example: AI support triage flow

Support triage is another strong fit.

New Zendesk ticket

Send ticket text to LLMAPI

AI returns category, urgency, and summary

Activepieces updates ticket fields

Team gets notified if urgent

Prompt:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You classify support tickets for a SaaS company. Return only valid JSON.”

    },

    {

      “role”: “user”,

      “content”: “Ticket: {{ticket_text}}\nReturn category, urgency, customer_sentiment, summary, and recommended_team.”

    }

  ],

  “temperature”: 0

}

Possible output:

{

  “category”: “account_access”,

  “urgency”: “high”,

  “customer_sentiment”: “frustrated”,

  “summary”: “Customer cannot access account after password reset.”,

  “recommended_team”: “support”

}

This gives support teams a cleaner queue and faster context.

Example: AI content workflow

Content teams can use Activepieces and LLMAPI to turn raw requests into structured briefs.

New Airtable content request

LLMAPI creates outline and search intent summary

Activepieces creates Google Doc

Slack message goes to writer

Prompt:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You create practical SEO content briefs. Use simple language.”

    },

    {

      “role”: “user”,

      “content”: “Create a content brief from this request: {{content_request}}. Include audience, search intent, outline, key points, internal links, and CTA.”

    }

  ],

  “temperature”: 0.4

}

This is especially useful when marketing requests come from different people in different formats.

Example: AI review queue

AI should not auto-approve everything.

For sensitive workflows, use AI to prepare the review.

New user content

LLMAPI checks risk category

If low risk: continue normal flow

If medium/high risk: send to human review

Prompt:

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You classify content risk for moderation. Return only valid JSON.”

    },

    {

      “role”: “user”,

      “content”: “Review this content: {{user_content}}. Return risk_level, reason, and suggested_action.”

    }

  ],

  “temperature”: 0

}

Expected output:

{

  “risk_level”: “medium”,

  “reason”: “Message contains aggressive language toward another user.”,

  “suggested_action”: “Send to human review.”

}

This creates a safer workflow because the model helps route the case instead of making the final decision alone.

How developers can go further

Activepieces is friendly for no-code users, but developers can extend it.

The Activepieces docs explain that pieces are TypeScript packages. The build custom pieces docs explain how the CLI can build and package custom pieces.

A developer team may start with the HTTP request piece. Later, they can create a private LLMAPI piece with actions like:

Custom actionWhat it does
Classify TextSends text and category list to LLMAPI
Summarize TextReturns a short summary
Extract JSONExtracts fields based on schema
Rewrite MessageChanges tone or format
Score LeadReturns lead score and reason
Moderate ContentReturns risk label and review advice

This gives non-technical teammates a cleaner interface. Instead of editing raw JSON in the HTTP step, they pick an action and fill fields.

A custom piece is worth building when:

SignalWhy
Many flows use the same LLMAPI callReduces repeated setup
Non-technical users build flowsCleaner fields reduce errors
You need standard promptsKeeps quality consistent
You need schema validationReduces broken downstream steps
You want internal governanceEasier to control approved AI actions

Error handling

AI automations need error handling from the beginning.

Common problems:

ProblemWhat to do
API timeoutRetry once or route to manual queue
Invalid JSONAsk model for JSON only, then validate
Empty inputStop flow or send missing-data alert
Long inputSummarize first or truncate carefully
Rate limitAdd delay, retry, or queue
High costUse smaller model for simple tasks
Low confidenceSend to human review

A good automation has a fallback path.

Example:

LLMAPI call succeeds

Parse result

If result has required fields, continue

If fields are missing, send item to manual review

This matters because LLMs can return unexpected output, especially when the input is messy.

Research on LLM agent evaluation points to the need for realistic evaluation and task-specific testing. For business automation, that means you should test flows with real tickets, real leads, real survey answers, and real messy text.

Cost control

AI automation cost depends on:

FactorWhy
Input lengthLonger prompts use more tokens
Output lengthLong summaries cost more
Model choiceStronger models usually cost more
Flow volumeSmall per-call costs add up
RetriesFailed calls can still create cost
Branch designSome flows call AI multiple times

IBM’s overview of LLM APIs explains that many providers price API access by tokens, often with separate input and output pricing.

For Activepieces workflows, this means you should control how much text goes into the model. Avoid sending entire email threads when only the latest message matters. Avoid asking for long outputs when a short JSON object will do.

Good cost habits:

HabitExample
Use smaller promptsRemove unrelated fields
Ask for short output“Summary under 30 words”
Use cheaper models for simple jobsClassification, tagging, routing
Use stronger models only when neededComplex reasoning or final drafts
Track spend by workflowCompare cost by automation type
Add human review for edge casesAvoid repeated AI retries

LLMAPI’s cost-aware analytics and model/provider breakdowns can help teams see where automations spend the most.

Security and privacy

Automation tools often touch sensitive data. AI calls can add another data path, so the rules should be clear.

Check these points before sending production data through any AI automation:

CheckWhy
API key storageKeep keys out of public docs and frontend code
Webhook secrecyAnyone with the webhook URL may trigger the flow
PII handlingEmails, names, phone numbers, and addresses may appear in inputs
Data retentionReview LLMAPI and model provider terms
Access controlLimit who can edit AI prompts and flows
LogsAvoid storing sensitive prompts in places where many users can read them
Human reviewRequired for high-stakes actions
Output validationPrevents bad data from moving downstream

The Activepieces API endpoint docs mention bearer-token authentication for API access in supported editions. That is a reminder that automation platforms need the same key discipline as regular backend apps.

For AI workflows, store secrets in the right Activepieces connection or secret field when available. Avoid hardcoding keys into notes, public screenshots, or shared templates.

Testing checklist

Before launching the workflow, test it with real examples.

TestWhat to check
Normal inputDoes the flow work as expected?
Empty inputDoes it stop safely?
Very long inputDoes it stay within model limits?
Messy inputDoes the prompt still work?
Angry customer messageDoes urgency classification work?
SarcasmDoes the model overreact?
Missing fieldsDoes the flow ask for review?
Invalid JSONDoes the flow catch the problem?
API failureDoes fallback work?
Cost spikeCan you see which flow caused it?

For classification tasks, create a small labeled test set. Even 50 to 100 real examples can reveal prompt problems quickly.

For extraction tasks, compare model output against the fields a human would enter.

For content workflows, review tone, accuracy, brand fit, and source quality.

A practical build plan

If you want a clean rollout, use this order.

Phase 1: Start with one workflow

Pick one workflow with clear input and clear output.

Good first choices:

WorkflowWhy
Support ticket classificationEasy to evaluate
Lead scoringClear business value
Survey summarizationSaves time quickly
Email data extractionSimple structured output
Daily digestLow risk and useful

Phase 2: Use HTTP request first

Start with the Activepieces HTTP request action. This lets you test LLMAPI quickly without building a custom piece.

Phase 3: Ask for JSON

Use JSON for any output that drives branches, updates fields, or sends data into another app.

Phase 4: Add review rules

Send uncertain or high-risk cases to a person.

Phase 5: Track quality and cost

Use LLMAPI analytics and Activepieces run history to see which flows work well and which ones need adjustment.

Phase 6: Build a custom piece

Once the same AI actions repeat across several flows, create a custom Activepieces piece.

Full example: Support ticket AI triage

Here is the full workflow in one place.

Trigger

New support ticket arrives.

Input:

{

  “customer_email”: “[email protected]”,

  “subject”: “Charged twice”,

  “body”: “I was charged twice this month and nobody has answered my last email. Please fix this today.”

}

LLMAPI request

{

  “model”: “gpt-4o”,

  “messages”: [

    {

      “role”: “system”,

      “content”: “You classify support tickets. Return only valid JSON with category, urgency, sentiment, summary, and next_action.”

    },

    {

      “role”: “user”,

      “content”: “Subject: Charged twice\nBody: I was charged twice this month and nobody has answered my last email. Please fix this today.”

    }

  ],

  “temperature”: 0

}

AI response

{

  “category”: “billing”,

  “urgency”: “high”,

  “sentiment”: “frustrated”,

  “summary”: “Customer says they were charged twice and has not received a reply.”,

  “next_action”: “Send to billing team and prioritize refund review.”

}

Activepieces actions

If category = billing

Create billing ticket

If urgency = high

Send Slack alert to support lead

If sentiment = frustrated

Add “needs careful reply” tag

Always

Save summary to ticket note

This is a useful first AI automation because every step has a clear business purpose.

Where RAG fits

Some workflows need company knowledge.

For example, a support reply should use current refund rules, pricing, plan limits, or setup instructions. A general model may produce a plausible answer that does not match your policy.

That is where retrieval helps.

The original RAG paper showed that models can produce more specific and factual answers when they can use retrieved knowledge. In an Activepieces workflow, retrieval can be simple at first:

New support ticket

Look up matching help center article

Send ticket + article text to LLMAPI

Generate draft reply

Human reviews before sending

You can pull context from:

SourceExample
Help centerRelevant support article
Google DocsInternal policy
NotionProduct docs
AirtableProduct table
CRMCustomer plan details
APICurrent account status

This makes AI automation more grounded.

Final thoughts

Activepieces is strong at connecting apps and running structured workflows. LLMAPI adds the AI layer: classification, summarization, extraction, rewriting, routing, and decision support through one model gateway.

The simplest setup is:

Trigger in Activepieces

HTTP request to LLMAPI

Structured AI output

Branch or action in Activepieces

Start with one useful workflow. Support triage, lead scoring, survey summaries, email extraction, and daily digests are all good first choices.

Use JSON for automation output. Add fallbacks for errors. Keep API keys private. Test with real examples. Track cost and quality before scaling.

Once the workflow proves useful, turn the repeated LLMAPI call into a custom Activepieces piece so the rest of the team can use it without touching raw API JSON.

Deploy in minutes