Skip to main content

Configure Mini Program Customer Service

Quickly configure TCB AI to integrate with Mini Program customer service to achieve intelligent customer service features.

Prerequisites

Step 1: Obtain the Mini Program AppId

Go to the Mini Program backend and view the AppId in the Development Management module.

Mini Program AppId Location

Step 2: Authorize the Mini Program

  1. Go to the TCB AI console and select the Agent module.
  2. Locate the "WeChat Platform" in the "Integration Guide"
  3. Select "Mini Program Customer Service" and click "Authorize Now"
  4. Enter the AppId obtained in the previous step and click Next.
  5. Use the Mini Program administrator's WeChat account to scan the QR code and complete authorization.

WeChat Platform Authorization Portal

📝 Note: This authorization allows TCB to act as an agent for Mini Program customer service, enabling AI auto-reply to messages.

Step 3: Development

After authorization is completed, the Agent needs to be modified to support the WeChat platform message format. Refer to the corresponding development documentation based on your Agent type:

Step 4: Testing

After completing development and deployment, you can test the intelligent customer service feature:

  1. Open your Mini Program
  2. Go to the customer service messages page
  3. Send any message and wait for the AI Agent to automatically reply
Mini Program customer service test effect

Optimization Suggestions

Improve Response Speed

Add the following settings to the Agent prompt to significantly improve response speed:

  • The Agent responds to questions in a minimalist style
  • Simplify complex questions and extract the key information
  • Strictly limit the length and relevance of responses to avoid redundancy
  • Do not output in Markdown format; output plain text directly

⚠️ Note: After changing the prompt, historical conversation records may affect the model's output effectiveness.

Model Selection

  • Recommended: Hunyuan model, DeepSeek V3 (fast response speed)
  • Not recommended: DeepSeek R1 and other deep thinking models (response time is slow)

Better Experience

For a richer conversation experience (such as Markdown rendering and multi-turn conversation display), consider embedding a custom AI conversation page within the mini program.