Home  >  Article  >  Backend Development  >  Create WeChat chatbot using Turing api, api chatbot_PHP tutorial

Create WeChat chatbot using Turing api, api chatbot_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:45:511054browse

Use Turing api to create a WeChat chatbot, api chatbot

Resources required:

Turing Robot Account

WeChat public account

Click to visit the official website of Turing Robot, register quickly and have your own chat robot. You can try it here first

Today we will briefly describe the construction of the WeChat public platform chat robot. First, you need to register a WeChat public account, and then log in to your Turing account on the Turing Robot website. You can see the interface as shown in the screenshot. In "Robot Settings" The "Customize" interface allows you to set the robot's nickname, age, gender and other information. The "Robot Training" interface allows you to teach your robot to answer specific questions. The "Knowledge Base" allows you to import the knowledge base to increase the capabilities of your robot~~~

The part circled in red is the URL address that needs to be set in the WeChat public platform account. Go to the WeChat public platform and log in to your WeChat public account. You need to open the developer mode, enter the developer center, and configure the WeChat public account. Server configuration information

The URL is filled in as the url after the WeChat address on the Turing website, and the Token can be filled in as you like. Turing server does not verify it (if you do WeChat development yourself, you need to verify it), the encryption key can be randomly generated, and the message For the encryption mode, you must choose plaintext mode or compatibility mode, because if you choose the encryption mode, the message will be encrypted, the server will not be able to respond correctly, and the WeChat server will be unable to verify the message

After filling in, enable developer mode

The above is the entire content of this article, I hope you all like it.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1037588.htmlTechArticleUse Turing API to create a WeChat chat robot. The resources required for the API chat robot: Turing robot account WeChat public account Click to visit the official website of Turing Robot and register quickly...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn