Integrations

Answer in Discord, Telegram and other chat apps with AstrBot

Your assistant can answer outside your website too. Add it as an OpenAI-compatible model provider in AstrBot, the open-source chatbot framework for Discord, Telegram, Slack, WeChat, QQ and more, or in Dify, LobeChat or any tool that speaks the same API. It answers there from the same website data, with the same standard answers, character and rules as your chat button.

Updated October 21, 2026

What you need

  • A website set up with us, on a paid plan (Basic, Standard, Elite or Enterprise). Sign up with your e-mail and enter your website's address if you have not yet.
  • An API key: in your dashboard, open Chat apps & API, give the key a name (for example “AstrBot”) and press Create API key. Copy it at once: it is shown only that one time.
  • AstrBot (or another tool) running and connected to your chat app. AstrBot's own documentation explains how to install it and connect Discord, Telegram, Slack, WeChat or QQ.

These are the three values every tool asks for:

API Base URL:  https://7x24hrs.com/v1
API Key:       sk-7x24-…
Model:         7x24hrs-assistant
Example. Replace sk-7x24-… with your own key from the dashboard.

Set it up in AstrBot

  1. Open the AstrBot dashboard and go to Providers. On the Chat Completion tab, press + Add next to Provider Sources.
  2. In New model provider, choose OpenAI Compatible.
  3. Give it an ID you will recognise, such as 7x24hrs. Paste your key into API Key, and set API Base URL to https://7x24hrs.com/v1.
  4. Press Save And Fetch Models. Under Available Models, press + next to 7x24hrs-assistant. In the window that opens, leave only Text ticked under Model capabilities (untick Image, Audio and Tool use: the assistant answers text) and press Save.
  5. Make it the model your bot uses: in Config, choose it as the default chat model (or choose it for one conversation with the model switch in Chat).
  6. Ask a question in AstrBot's Chat page, or in your connected chat app. The answer comes from your website's data.

Leave AstrBot's own persona and system prompt empty, or keep them short: your assistant follows your rules and character from the 7x24hrs dashboard and does not take instructions from the chat app's system prompt.

Dify, LobeChat and other tools

Any tool with an “OpenAI-compatible” or “custom OpenAI” provider works the same way: Base URL https://7x24hrs.com/v1, your API key, and the model 7x24hrs-assistant.

  • Dify: in Settings → Model Provider, add OpenAI-API-compatible, enter the model name, your key and the Base URL as the API endpoint, then use the model in your app.
  • LobeChat: in the settings, under language models, turn on the OpenAI provider, enter your key and set the API proxy address to the Base URL, then add 7x24hrs-assistant to the model list.
  • Your own code: call the API with any OpenAI client library, setting the base URL and key.

To try the API from a terminal:

curl https://7x24hrs.com/v1/chat/completions \
  -H "Authorization: Bearer sk-7x24-…" \
  -H "Content-Type: application/json" \
  -d '{"model": "7x24hrs-assistant", "user": "visitor-42",
       "messages": [{"role": "user", "content": "Do you ship to Canada?"}]}'
Example. Replace sk-7x24-… with your own key from the dashboard.

With "stream": true the answer arrives as server-sent events, the same way as OpenAI's:

curl -N https://7x24hrs.com/v1/chat/completions \
  -H "Authorization: Bearer sk-7x24-…" \
  -H "Content-Type: application/json" \
  -d '{"model": "7x24hrs-assistant", "stream": true,
       "messages": [{"role": "user", "content": "Do you ship to Canada?"}]}'
Example. Replace sk-7x24-… with your own key from the dashboard.

How answers in chat apps work

Chat button on your websiteChat app through the API
Answers fromYour website's data, standard answers and characterThe same
When it is not sureSays so and passes the visitor to youSays so and gives your contact address in the answer
You are notifiedBy e-mail, Slack, Discord or TelegramThe same, marked “via API / AstrBot”
Answering the visitor yourselfFrom your chat app or dashboardNot possible from here: reply by e-mail
Conversations countedOne per visitor and conversationThe same, from the same monthly allowance
Which plans include chat apps?

Every paid plan: Basic $19 a month for 90 conversations, Standard $59 for 275, Elite $199 for 1,000 and Enterprise $1,099 for 6,000. Conversations through the API come out of the same monthly allowance as the chat button. The free plan does not include chat apps: keys made on it are paused until you choose a paid plan. See pricing.

What counts as a conversation?

One visitor chatting, however many questions they ask, exactly as with the chat button. Tools that send a user field with each request let us tell visitors apart; otherwise a conversation is recognised by its first message.

Can a system prompt in AstrBot change what the assistant says?

No. System prompts sent by the chat app are not followed. The assistant keeps your rules: it answers only from your website's data, says when it does not know, and promises nothing your website does not say. Its character is the one you set in the dashboard.

Are pictures, voice messages or tool calls supported?

Not yet. Text is answered; pictures and other attachments are left out of a message, and a message with no text gets a clear error. Tool definitions sent by the client are ignored.

What if a key leaks?

Revoke it in Chat apps & API: it stops working at once. Then create a new one and paste it into your tool. Keys are stored only as a fingerprint, so we cannot show a key again either.

Sources