In this categoryIntegrations · 69
- How to Get a YouTube Data API Key and OAuth CredentialsStart
- How to Upload a Video to YouTube with Python and the Data API
- How to Generate YouTube Video Scripts with the Claude API
- How to Generate YouTube Titles and Descriptions with ChatGPT's API
- How to Auto-Generate Captions with Whisper and Upload an SRT
- How to Upload Videos to YouTube Automatically with Zapier
- How to Build a Make Scenario That Turns Topics into Draft Scripts
- How to Schedule YouTube Uploads with the publishAt Timestamp
- How to Auto-Draft Replies to YouTube Comments with Claude
- How to Bulk Update Titles and Tags Across Many Videos via API
- How to Build an End-to-End Script-to-Upload Pipeline with Claude and the API
- How to create a Telegram bot with BotFather and get your token
- How to find your Telegram chat ID for sending messages
- How to auto-post to a Telegram channel from a script
- How to make a Telegram bot reply with AI answers
- How to Build a Discord Bot That Auto-Replies With AI
- How to Build a Slack AI Bot With Bolt for Node
- How to add slash commands and a menu to a Telegram bot
- How to Auto-Reply on WhatsApp With AI Using Twilio
- How to switch a Telegram bot from polling to webhooks
- How to Add an /ask Slash Command That Calls AI in Discord
- How to schedule Telegram channel posts with cron
- How to add inline buttons and handle taps in a Telegram bot
- How to send photos, documents, and files with a Telegram bot
- How to Give Your Chat Bot Memory of the Conversation
- How to auto-post your blog RSS feed to a Telegram channel
- How to Make a Slack Command That Summarizes a Thread With AI
- How to build an AI moderator bot for a Telegram group
- How to Connect AI to WhatsApp With the Meta Cloud API
- How to Connect AI to Chat Apps Without Code Using n8n
- How to Build an AI Auto-Reply Viber Bot
- How to Stream AI Replies Live in Discord by Editing Messages
- How to Send an AI Welcome Message When Someone Opens Your Viber Bot
- How to Connect Notion to Claude Using the MCP Connector
- How to connect Gmail to ChatGPT so it drafts replies for you
- How to Add a Gemini AI Formula to Google Sheets With Apps Script
- How to use Gemini inside Gmail to summarize and reply to threads
- How to Create a Notion Internal Integration Token for AI Scripts
- How to connect Google Calendar to ChatGPT to schedule events by chat
- How to Classify Spreadsheet Rows With ChatGPT in Google Sheets
- How to Connect Google Drive to Claude and Search Your Files
- How to Use Gemini in the Google Docs Side Panel to Draft and Edit
- How to connect Outlook to AI with Power Automate to summarize emails
- How to Build a Notion to Google Sheets AI Pipeline With Zapier
- How to give Claude access to your Gmail with an MCP server
- How to Auto-Summarize Notion Meeting Notes With an AI Script
- How to auto-label and prioritize Gmail with AI using Apps Script
- How to Generate a Full Google Doc From an AI Prompt With Apps Script
- How to turn AI meeting notes into Outlook calendar follow-ups
- How to Extract and Summarize a Drive PDF With AI Using Apps Script
- How to build an AI scheduling assistant that books meetings via email
- How to Translate a Google Sheets Column With an AI Custom Function
- How to sync AI-extracted tasks from email to your calendar with n8n
- How to use AI to triage and batch-reply to your inbox each morning
- How to securely give an AI tool access to your email account
- How to Send a Zapier Webhook to OpenAI and Get a Summary Back
- How to Trigger an n8n AI Agent from a Webhook Node
- How to Classify Incoming Webhook Data with Claude in Make
- How to Auto-Draft Email Replies from a Form with Zapier and GPT
- How to Connect a Webhook to Receive Events
- How to Verify Webhook Signatures Before Calling an AI Model
- How to Give a Zapier AI Webhook Simple Conversation Memory
- How to Describe Uploaded Images with a Make Webhook and GPT Vision
- How to Add an Error Handler and Retry to an AI Webhook in Make
- How to Answer a Webhook Instantly While AI Runs in the Background in n8n
- How to Build a Slack Slash Command AI Bot with an n8n Webhook
- How to Cap AI Spend on a Webhook Across Zapier, Make, and n8n
- How to Pin an API Version for a Stable Integration
How to Build an AI Auto-Reply Viber Bot
Create a Viber Public Account bot, set its webhook, and answer messages with AI over the REST API.
Viber bots run on a Public Account and a simple REST API: you set a webhook, receive a JSON event for each message, and POST a reply. This guide creates the bot, registers the webhook, and wires incoming messages to an LLM so it answers automatically.
What you need
- A Viber account and a Public Account created at partners.viber.com
- The bot authentication token from the account info page
- A public HTTPS endpoint (Viber requires a valid certificate)
- Node 18+ and an AI API key
Step 1: Get your bot token
Sign in at partners.viber.com, create a bot account, and copy the token from the account info screen. Every API call carries this token in the X-Viber-Auth-Token header.
Step 2: Set the webhook
Tell Viber where to send events by calling set_webhook once. The event_types array controls which events you receive; message is the one you care about. Viber will reject any URL without a valid SSL certificate.
Step 3: Reply with AI
Each inbound message arrives as a POST with event: message. Read sender.id and message.text, generate an answer, and POST it back to send_message. Respond 200 quickly so Viber does not retry.
import "dotenv/config";
import express from "express";
import OpenAI from "openai";
const ai = new OpenAI();
const TOKEN = process.env.VIBER_TOKEN;
const app = express();
app.use(express.json());
app.post("/viber", async (req, res) => {
res.sendStatus(200);
if (req.body.event !== "message") return;
const userId = req.body.sender.id;
const text = req.body.message.text;
const out = await ai.chat.completions.create({
model: "gpt-5-mini",
messages: [{ role: "user", content: text }],
});
await fetch("https://chatapi.viber.com/pa/send_message", {
method: "POST",
headers: {
"X-Viber-Auth-Token": TOKEN,
"Content-Type": "application/json",
},
body: JSON.stringify({
receiver: userId,
type: "text",
text: out.choices[0].message.content,
}),
});
});
app.listen(3000, () => console.log("Viber bot on :3000"));Step 4: Subscribe and test
A user must say hi to your Public Account first; Viber then sends a conversation_started event and the user becomes a subscriber. After that, every message they send flows through your webhook.
Result
Your Viber Public Account now answers subscribers with AI. Deploy the server somewhere with a real certificate and Viber will keep delivering events without you touching the webhook again.
Watch related tutorials
22:10
25:00
60:00
27:30
31:18
24:16New guides in your inbox
Fresh step-by-step how-to guides as we publish them. One email a week, no more.