[Conversation Robot] Introduction to Open Source Robot Project

Table of contents

1. Introduction to chatbots

2. Qingyunke Platform

3. Thinking Project

1. Introduction to chatbots

Chatbot is an intelligent dialogue system based on artificial intelligence and natural language processing technology. It is designed to simulate human language communication capabilities and conduct natural and coherent conversations with users. Chatbots can understand users' questions or instructions, analyze and process text, generate answers that comply with grammatical and semantic rules, and respond in a natural and smooth way.

The core technologies of chatbots include natural language understanding (NLU), natural language generation (NLG), and dialogue management. Natural language understanding can convert user input into a machine-understandable form, including identifying keywords, named entities, semantic roles, etc. Natural language generation is responsible for converting machine-generated answers into natural language text so that users can understand it. Dialogue management refers to the machine’s control and management of the dialogue process based on user input and context to ensure the coherence and rationality of the dialogue.

Chatbots are widely used in various fields, including intelligent assistants, customer service robots, social entertainment, etc. In the field of intelligent assistants, chatbots can help users answer questions, provide information, provide suggestions, etc., and achieve intelligent interaction with users. In the field of customer service robots, chatbots can replace human customer service personnel to communicate with users and solve their problems and needs. In the field of social entertainment, chatbots can have interesting conversations with users and provide entertainment and leisure functions.

With the continuous development of artificial intelligence and natural language processing technology, the interactive capabilities and intelligence of chatbots are also constantly improving. In the future, chatbots are expected to be closer to human language communication levels and become indispensable partners in people's daily lives.

2. Qingyunke Platform

Qingyunke Intelligent Chatbot API

http://api.qingyunke.com/

code call

import requests
import urllib


# http://api.qingyunke.com/
def chat(msg):
    url = 'http://api.qingyunke.com/api.php?key=free&appid=0&msg={}'.format(urllib.parse.quote(msg))
    response = requests.get(url)
    return response.json()["content"]


msg_list = ["你好", "你是谁", "你多大了"]
for msg in msg_list:
    print("user: ", msg)
    res = chat(msg)
    print("bot: ", res)

response result

user:  你好
bot:  大家好才是真的好
user:  你是谁
bot:  我是兵哥哥
user:  你多大了
bot:  你可以告诉我你多大了吗

3. Thinking Project

 The ownThink project opens up tools for conversational robots, knowledge graphs, semantic understanding, and natural language processing.

https://www.ownthink.com/

code call

import requests
import urllib


# https://www.ownthink.com/
def chat(msg):
    url = 'https://api.ownthink.com/bot?spoken={}'.format(urllib.parse.quote(msg))
    response = requests.get(url)
    return response.json()["data"]["info"]["text"]


msg_list = ["你好", "你是谁", "你多大了"]
for msg in msg_list:
    print("user: ", msg)
    res = chat(msg)
    print("bot: ", res)

Response result:

user:  你好
bot:  你也好啊
user:  你是谁
bot:  我是人见人爱的小思呀!
user:  你多大了
bot:  ...2月14日生日,剩下的先保密

Guess you like

Origin blog.csdn.net/u014147522/article/details/131504979