ChatHub/docs

Search documentation

SUGGESTED FOR YOU135 results

Search published articles · By section

How to add channels to ChatHub

Connect personal Zalo, personal Telegram, Telegram Bot and Chat Plugin, with screenshots for setup, authentication steps, website configuration and inbox checks.

Add a channel to your shared inbox#

The Channels page connects messaging accounts and website chat to ChatHub. This guide covers all four available types: personal Zalo, personal Telegram, Telegram Bot and Chat Plugin, followed by connection and inbox checks.

Open Channels in the demonstration system

1. Prepare before adding a channel#

  1. 1

    Sign in to a ChatHub account with permission to manage Channels. Ask an administrator to check access if the page or actions are unavailable.

  2. 2

    Personal Zalo: have a phone signed in to the intended Zalo account ready to scan and approve a QR code.

  3. 3

    Personal Telegram: have the phone number, Telegram app for login codes and two-step verification password if enabled. An administrator must first configure the shared API ID/API Hash.

  4. 4

    Telegram Bot: prepare a bot you manage and its BotFather token. ChatHub needs an HTTPS address reachable by Telegram for webhooks; a DDEV domain accessible only on your computer is insufficient.

  5. 5

    Chat Plugin: prepare a website you can edit, the domains allowed to embed chat and customer-facing support text.

Configure API credentials and personal Telegram

2. Open Add account#

  1. 1

    Open /channels on your ChatHub domain and select “Thêm tài khoản” (Add account) at the upper right.

  2. 2

    Choose one of the four types on the left. Read the setup and next-step information on the right.

  3. 3

    For Telegram Bot, also enter a Bot token. The other three types do not ask for login credentials in this dialog. The current interface names the account after its type and has no separate name field.

  4. 4

    When ready, click “Tạo tài khoản” (Create account); ChatHub opens the new account configuration. Choose “Huỷ” (Cancel) or × to leave without creating it.

Channels with “Thêm tài khoản” (Add account) at the upper right. Search is filtering for “Chat thử với bot”, leaving one existing demo card; “Xoá bộ lọc” clears the filters. The active status belongs to that existing channel. Vietnamese UI.

3. Add personal Zalo with a QR code#

  1. 1

    Select personal Zalo → “Tạo tài khoản”. In the account configuration, find “Đăng nhập Zalo” (Zalo login) and “Quét mã QR” (Scan QR code).

  2. 2

    Click “Tạo mã QR” (Create QR code). Scan it using the Zalo app on the phone signed in to the account you want to connect.

  3. 3

    When the state becomes “Đã quét” (Scanned), approve the login on your phone. Wait for “Đã kết nối” (Connected), then check the channel status.

  4. 4

    For “Hết hạn” (Expired), choose “Tạo mã mới” (Create new code) and scan again. For “Bị từ chối” (Declined), check phone approval; for “Thất bại” (Failed), read the error and use “Thử lại” (Retry).

Select personal Zalo in the first row on the left. The next-step box explains phone approval; “Tạo tài khoản” is at the bottom right. This screenshot stops before creation; no real Zalo QR session or login was performed. Vietnamese UI.

4. Add personal Telegram#

  1. 1

    Complete the shared API ID/API Hash setup in the personal Telegram guide, then return to Channels → Add account → personal Telegram → Create account.

  2. 2

    Under “Đăng nhập Telegram”, enter your phone number. For international numbers, include + and country code; verify “Sẽ gửi mã tới” (Code will be sent to) before clicking “Gửi mã xác thực” (Send verification code).

  3. 3

    Read the notice to see whether the code arrives in Telegram or by text message. Enter it in “Mã xác thực” and click “Xác nhận mã” (Confirm code). Use “Gửi lại mã” (Resend code) only when needed and respect any Telegram waiting period.

  4. 4

    If prompted, enter your two-step verification password and click “Xác nhận mật khẩu”. Once Connected appears, check the Channels list and test receiving a message with a test account.

Personal Telegram is selected in the second row. The next-step box explains phone login after account creation; Create account has not been clicked. Vietnamese UI.
Phone field and Send verification code button on an existing Telegram channel that is not signed in. +12025550123 is a sample number; no code was requested. Replace it with your number and verify the confirmation line below. Vietnamese UI.
A Telegram Bot token cannot replace the API Hash or personal Telegram login code.

5. Create and connect a Telegram Bot#

Open the official BotFather

  1. 1

    Open the verified @BotFather in Telegram. If you need a new bot, send /newbot and follow its prompts to choose a name and username and receive a token. For an existing bot, use the token of the bot you want to connect.

  2. 2

    In ChatHub, choose Add account → Telegram Bot. Paste your real token into Bot token and click Create account.

  3. 3

    In the newly created account configuration, click “Kết nối” (Connect). ChatHub uses the saved token to register a Telegram webhook; creating the account does not replace this connection step.

  4. 4

    Wait for the Active status. From a test Telegram account, open the bot, press Start and send a test message. Check it in the ChatHub inbox and reply to verify both directions.

Official @BotFather landing page with verification badge and START BOT. The button opens Telegram to interact with the bot; /newbot has not been sent and no token is shown. English UI.
Choose Telegram Bot, enter its token in the central Bot token field, then use Create account at the bottom right. TOKEN_MAU_KHONG_HOP_LE is an invalid demonstration string; no account or webhook was created. Vietnamese UI.
Treat the token as a password; do not share it in support chats or public screenshots. For webhook errors, ask an administrator to check the public HTTPS address and specific error message.

Telegram: obtain your bot token

6. Create a website Chat Plugin#

  1. 1

    Choose Add account → Chat Plugin → Create account. This type does not require a phone number, QR code or bot token.

  2. 2

    In the configuration, click Connect to connect the widget. Check its status before embedding it on your website.

  3. 3

    Find the website chat area with “Hiển thị” (Display), “Biểu mẫu” (Form) and “Mã nhúng” (Embed code) tabs. Apply the following settings and click “Lưu cấu hình” (Save configuration).

Chat Plugin is selected in the last row. The next steps cover appearance, form and embed code; Create account is at the bottom right. No new channel was created; subsequent screenshots use an existing demo channel. Vietnamese UI.

7. Customize appearance and greeting#

  1. 1

    In Display, choose Circle, Pill or Vertical tab, then choose right/left placement and button size.

  2. 2

    Adjust horizontal spacing, desktop/mobile bottom spacing, primary color and icon. For a text-bearing style, edit the button label. Choose a custom image from the work file library if needed.

  3. 3

    Fill in the chat title, description and greeting. For example, use “Sample store support” and “Hello! Which product can we help you with?”. Fields with default-text hints can be left blank to use system-language defaults.

  4. 4

    Use the preview to check wording and placement. It is a simulation; you still need to test the widget on your actual website. The greeting is only displayed in the UI and does not by itself create an inbox conversation.

Display tab: Pill style, right placement and 60 px size are selected. The preview is on the right; these are unsaved demo settings. Vietnamese UI.
Greeting field with sample text and the note that it does not create an inbox conversation. The entered text is unsaved; use wording suitable for your store. Vietnamese UI.

8. Choose conversation and attachment options#

  1. 1

    Enable multiple conversations if customers should open a new conversation for another issue: each becomes a separate inbox conversation under the same contact. Disable it to keep a customer’s messages in one conversation.

  2. 2

    Enable image and file uploads for attachment buttons and drag-and-drop; the current interface specifies a maximum of 10 MB per file.

  3. 3

    Click Save configuration when your Chat Plugin settings are ready. If you are only previewing, close the dialog without saving.

Multiple-conversation and file-upload switches at the bottom of Display, with Save configuration at the lower right. Multiple conversations are off and uploads are on; Save configuration was not clicked. Vietnamese UI.

9. Ask for information before chat#

  1. 1

    Open Form and enable pre-chat information collection if needed. The form is asked once; returning visitors go straight to chat.

  2. 2

    Enter introductory text and a submit-button label, or keep the defaults. For example: “Tell us your name so we can help you more easily.”

  3. 3

    Under fields to ask, enable “Hỏi” (Ask) for name, phone or email. Enable “Bắt buộc” (Required) for mandatory fields; a field that is not asked cannot be required.

  4. 4

    Review the preview and save configuration. Submitted information goes into the contact profile; existing profile values are not overwritten.

Form tab with pre-chat information enabled and sample introductory text. The right-hand preview shows the pre-chat experience; these draft changes are unsaved. Vietnamese UI.
Submit-button text is above the field controls. Name is asked and required, phone is asked but optional, and email is off. Ask/Required controls apply to each field separately; settings are unsaved. Vietnamese UI.

10. Embed Chat Plugin on your website#

  1. 1

    Open Embed code and choose “Chép mã” (Copy code) to copy this channel’s script. Paste it at the end of every page needing chat, immediately before the closing body tag, or into the shared page template.

  2. 2

    In allowed embedding domains, enter one domain per line. The screenshot uses https://example.com as a sample; replace it with your website domains, including any needed subdomains.

  3. 3

    Save configuration. Open the embedded website and check the chat button on desktop and phone, the form if enabled, and message delivery using a test session.

  4. 4

    If the widget is missing, check that the channel is connected, the script is correctly placed, the page matches an allowed domain and the browser can reach your ChatHub server.

Allowed embedding domains with the unsaved sample https://example.com. Save configuration is at the lower right; Sign out all visitors is a separate action and is not needed for embedding. The channel identifier is outside the screenshot. Vietnamese UI.
Leaving the domain list empty allows any page with the snippet to use the widget. Sign out all visitors revokes existing visitor sessions through a separate confirmation action; it is not a setting waiting for Save configuration.

11. Verify the new channel#

  1. 1

    Return to Channels and use the refresh icon. Clear filters or search by name/type if the new account is missing.

  2. 2

    Compare the power switch with status: Active means enabled and connected; Disconnected means no current connection; Off means the switch is disabled. Needs attention groups the other statuses requiring inspection.

  3. 3

    Open configuration to inspect login state, any errors, last signal and supported capabilities. A disconnected channel has Connect; other states may show Reconnect, Test and Disconnect.

  4. 4

    After authentication and connection succeed, send a message from a test account or visitor session, check it in the inbox, then reply to verify outgoing delivery. A green badge on a demo channel does not prove a real provider connection.

This Telegram channel is enabled but has a Disconnected header badge, with no account ID or last signal. Connect does not replace phone/code authentication. This is an existing state; the connection was not changed. Vietnamese UI.

Use the inbox after connecting

12. Choose group messages to sync#

  1. 1

    For channels showing Message sync, review the group-message switch. Turning it off prevents new group messages from reaching the inbox while direct messages still arrive.

  2. 2

    Individual groups appear only after ChatHub has received their first message; an empty list does not necessarily indicate a connection problem.

  3. 3

    Once groups appear, ignore or resume each group as needed. Ignoring blocks new messages without deleting existing conversations or history. Sync switches save immediately.

Group sync is enabled; the individual-group list is empty because this example account has no received group messages. The note explains that only new messages are blocked; no switch was changed. Vietnamese UI.

13. Troubleshooting and connection management#

  1. 1

    Missing channel: refresh and clear search/filters; read the result of Create account before retrying to avoid duplicates.

  2. 2

    No personal Telegram code: verify the displayed destination, delivery channel and shared API setup. Invalid/expired codes need a new code; the two-step password is your configured password, not an OTP.

  3. 3

    Zalo scanned but not connected: check phone approval; expired codes need a new QR code.

  4. 4

    Telegram Bot token/webhook error: check the correct bot token, connection state and public HTTPS address. Ask an administrator to resolve server errors instead of pasting tokens into unrelated fields.

  5. 5

    Chat Plugin is visible but no inbox message exists: greetings and previews do not create conversations. Complete any form and send a test message on the embedded website.

  6. 6

    The channel power switch saves immediately; enabling tries to connect but may fail without a valid session. Reconnect/Disconnect affect the real connection. Delete account is not a routine login fix; read its confirmation carefully before using it.

How to add channels to ChatHubBack to top
© 2026 ChatHub DocsPowered by CMSNT LTDA guide to using ChatHub.