EN ▾
Get API key

Chatbot Solution Providers for Social Media: What to Pick

Chatbot solution providers for social media fall into two groups: suites that bundle channels, inbox and a model, and plain model APIs you wire up yourself. This article explains which fits, and how to build the second kind.

Updated

Isometric diagram of messages from several platforms passing through a queue into one language model block

Key points

  • A suite sells connectors, an inbox and reporting; an LLM API sells only the text generation.
  • This service is the second kind: a text-only, OpenAI-compatible API with a single model.
  • Build a webhook, a queue capped below 8 concurrent calls, and a send function per platform.
  • At $0.15 and $0.50 per million tokens, 10,000 DM replies cost about $4.25.

Two kinds of provider, and which one you are shopping for

Search for these providers and the results mix two different products. The first is a hosted suite. You connect your accounts, design flows in a visual editor, read conversations in a shared inbox, and get reports. The model behind it is a feature, usually chosen for you. The second is a model API. It gives you text generation over HTTP and nothing else, and you write the glue.

The right choice depends on who will run the bot. A marketing team with no developer will do better with a suite. A developer building a character, a companion app, a fiction bot or a custom assistant will find suites restrictive, because they decide what the bot may say and where it may run.

The service described here is the second kind. It is a hosted, OpenAI-compatible text LLM API: POST /v1/chat/completions and GET /v1/models, one model with the ID uncensored, tuned to answer without content refusals for lawful adult use. It has no social media connectors, no inbox, no analytics dashboard, and no image or voice features. You bring those.

A short comparison of the two approaches

QuestionHosted suiteText LLM API
Channel connectorsIncluded, maintained for youYou write or pick libraries
Conversation inboxUsually includedYou build it, or skip it
Control over repliesLimited to the vendor's optionsFull: prompts, memory, tools
Content policySet by the vendorSet by you, within the law and platform rules
Pricing modelCheck each vendor's current pricingPer token, prepaid, no subscription
Developer timeLowModerate

Neither column wins everywhere. If you only need an FAQ bot on a business page, a suite is a reasonable answer and this API is more work than you need. If you need a persona that stays in character, or a model that does not refuse fiction for adults, a plain API gives you room that suites often do not.

Some teams combine both: a suite for the inbox and handoff to humans, with a webhook that calls a model API for the replies. Check whether a provider you like supports a custom webhook step before you rule it in.

Architecture for a bot you build yourself

Every social platform has its own way of delivering messages, but the shape is the same: the platform calls your HTTPS endpoint when a message arrives, and you call the platform's send endpoint with a reply. Between those two events sits the model call. Three components make it reliable.

  1. Webhook receiver. It verifies the platform's signature, stores the incoming event, and returns a 200 quickly. Platforms retry slow endpoints, which leads to duplicate replies if you generate the answer inside the request.
  2. Queue with a concurrency cap. It feeds events to the model call, at most 6 at a time. A full key allows 8 concurrent requests and 300 per minute.
  3. Sender. A small function per platform that posts the reply to the right conversation.

Deduplicate by the platform's message ID. Store it for a day, and if the same ID shows up again, skip it. This one habit prevents the most embarrassing failure of auto-reply bots, which is answering the same person three times.

Check each platform's rules before launch. Many restrict automated messaging to people who contacted you first, limit the window in which you may reply, or require you to tell users they are talking to a bot. These rules differ and change, so read the current developer terms rather than relying on a blog post.

Worker code: queue, model call and retries

This Node example shows the middle of the pipeline. It does not name a platform; sendToPlatform is the function you fill in with that platform's send call. The queue runs at most six jobs together and retries on HTTP 429.

import OpenAI from "openai";

const ai = new OpenAI({
  baseURL: "https://api.wannsfw.top/v1",
  apiKey: process.env.API_KEY,
  maxRetries: 3,
});

const SYSTEM =
  "You are the assistant for a community page. Be friendly, short and clear. " +
  "Never discuss or write anything sexual involving minors.";

const MAX_PARALLEL = 6;
const waiting = [];
const seen = new Set();
let running = 0;

export function enqueue(event) {
  if (seen.has(event.messageId)) return; // duplicate delivery
  seen.add(event.messageId);
  waiting.push(event);
  pump();
}

function pump() {
  while (running < MAX_PARALLEL && waiting.length) {
    const job = waiting.shift();
    running++;
    handle(job).finally(() => {
      running--;
      pump();
    });
  }
}

async function handle(job) {
  const res = await ai.chat.completions.create({
    model: "uncensored",
    max_tokens: 300,
    messages: [
      { role: "system", content: SYSTEM },
      ...job.history,
      { role: "user", content: job.text },
    ],
  });
  const reply = res.choices[0].message.content ?? "";
  await sendToPlatform(job.conversationId, reply);
}

async function sendToPlatform(conversationId, text) {
  // call the platform's send-message endpoint here
}

The webhook handler calls enqueue and returns immediately. For production you would swap the in-memory array for a durable queue such as one in Redis, so a restart does not lose pending messages. The API docs list the request fields you can add, including tools if you want the bot to look up an order or a schedule.

Memory, persona and tools

Social media conversations are short and bursty. A person writes, goes away for six hours, and returns. Keep the last 8 to 12 turns per conversation in a database keyed by the platform's conversation ID, and load them on each event. The context window is 100,000 tokens, so size is rarely the constraint; cost and relevance are.

Put the persona in the system prompt and keep it stable. A short, concrete description of voice, topics and limits beats a long list of rules. If the bot has to do things, such as check availability, use tool calling: define the function in tools, let the model return a tool_calls entry, run it yourself, and send the result back with role: "tool". JSON mode (response_format set to json_object) is useful when you want the model to classify a message, for example into "question", "complaint" or "spam", before you decide what to do.

Where moderation fits

A generation API is not a detector. If you need to flag or filter adult material in user uploads, that is a different job, and the article on NSFW detection myths and facts explains why. For text bots, the practical controls are your system prompt, a blocklist for abusive users, and a human review path for anything the bot is unsure about.

A cost example for a social inbox

Take a page that receives 10,000 direct messages a month that the bot answers. Assume each call sends about 2,000 input tokens (system prompt, history and the new message) and returns about 250 tokens.

  • Input: 2,000 x $0.15 / 1,000,000 = $0.0003 per reply
  • Output: 250 x $0.50 / 1,000,000 = $0.000125 per reply
  • One reply: $0.000425
  • 10,000 replies: $4.25

A top-up of $50 adds a 5% bonus, so the balance becomes $52.50. At $0.000425 per reply that covers about 123,000 replies, and the credit never expires. Compare that structure with the monthly fee of a hosted suite by checking that vendor's current pricing. Payment here is in USDT on TRC20 or USDC on Base, from $20 to $500 per top-up, and the pricing page shows the bonus tiers in full.

Failed or refused requests are not charged, so retries after a 429 do not add to the bill.

Getting started in an afternoon

Plan the first day like this. Sign up with Google or with an email and password, then claim the trial credit from the API key page. It is $0.50, valid for 7 days, needs no payment details, and is limited to one per person. Use it to test your prompt with 2 concurrent requests and 60 per minute, which is plenty for development.

Next, wire one platform end to end with a single test account before adding a second. Log each request's X-Request-Id so you can match a bad reply to a call. Watch X-Balance-USD in the response headers and alert yourself when it falls below a threshold. Prompts are not used for training, and the privacy page describes the rest of the data handling.

Last, write down your rules: who the bot talks to, what it refuses, how a person takes over, and what you do with stored conversations. No sexual content involving minors is the fixed limit of the service, and your own policy should be stricter than the minimum, not looser.

Questions and answers

Does this API connect directly to Instagram, Facebook or X?

No. It is a text-only model API with no channel connectors. You receive messages through each platform's own API or a connector tool, then call this API for the reply.

Can I use it behind a hosted chatbot builder?

If the builder supports a custom OpenAI-compatible endpoint or a webhook step, yes. Set the base URL to https://api.wannsfw.top/v1 and the model to uncensored.

Is there a monthly subscription?

No. You pay per token from prepaid credit, and the credit does not expire.

How many chats can one key handle?

A full key allows 8 concurrent requests and 300 requests per minute. Most chat replies finish in seconds, so that covers a busy page when you queue requests.

Do I have to tell users they are talking to a bot?

Many platforms require it, and it is good practice anyway. Check the current developer rules for each platform you use.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key