Skip to content

How to build a chatbot from zero to one on WeChat #1221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 30, 2022

Conversation

gangena
Copy link
Contributor

@gangena gangena commented Aug 24, 2021

Please make sure to check the following boxes creating your pull request, thank you very much!

  • Add Blog Header, including title, author, image, categories, tags, etc.

    For example:

    ---
    title: Your Great Blog Title
    author: your_github_id
    categories: project
    tags:
      - python
      - padlocal
    image: /assets/2021/02-your-blog-slug/teaser.jpg
    ---
    
    One line bio
    
    Your blog post content Your blog post content
    Your blog post content Your blog post content
    Your blog post content Your blog post content

    It will be easier to start drafting your post by using a existing post file as your template, for example, this one

  • Keep all filenames lowercase, and use - to connect words instead of space. e.g. 2017-10-06-wechat-pc-impactor.md instead of 2017-10-06-WeChat PC Impactor.md

  • Embed video/pdf from YouTube/Bilibili/local (if there's any) by using {% include iframe.html src="URL_or_PATH" %}. (Learn more about how to embed file/url in the post by reading this blog post

  • Save photo to local before publishing, to a folder named by ${MONTH}-${YOUR_BLOG_SLUG}/ under /assets/2021/ directory.

  • Select a beautiful and meaningful teaser image for your blog

  • Create your contributor profile (if you are a first time contributor)

    For excample:

    jekyll/_contributors/lijiarui.md

    ---
    name: Jiarui LI (李佳芮)
    site: https://lijiarui.github.io
    bio: 句子互动创始人 & CEO,微软人工智能最具价值专家 (AI MVP)
    avatar: /jekyll/assets/contributors/lijiarui/avatar.png
    email: [email protected]
    twitter: https://weibo.com/u/2175505900
    ---

    Here is the example file:

To learn more about the contribute guideline, visit: https://wechaty.js.org/docs/contributor-program/

@gangena gangena requested a review from a team as a code owner August 24, 2021 06:38
@gangena gangena mentioned this pull request Aug 24, 2021
6 tasks

## 李佳芮

句子互动的创始人,GitHub上开源项目Wechaty上面的联合作者,Wechaty在github上面有超过1万star,并搭建了一个覆盖全球的微信平台开发者社区,微软的 AI MVP,出版书:《Chatbot从0到1》,已经在京东上架,欢迎大家阅读,本次分享里面会简单介绍书中的内容,如何从0到1搭建一个聊天机器人,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add link https://item.jd.com/12630213.html for 《Chatbot从0到1》

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"句子互动的创始人,GitHub上开源项目Wechaty上面的联合作者,Wechaty在github上面有超过1万star,并搭建了一个覆盖全球的微信平台开发者社区,微软的 AI MVP,出版书:《Chatbot从0到1》,已经在京东上架,欢迎大家阅读,本次分享里面会简单介绍书中的内容,如何从0到1搭建一个聊天机器人," This looks like a sick sentence

image: /assets/2020/04-how-to-build-a-chatbot-from-zero-to-one-on-wechaty/homepage.webp
---

> 作者: [lijiarui](https://github.com/lijiarui/)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove author here.

- news
- meetup
- featured
image: /assets/2020/04-how-to-build-a-chatbot-from-zero-to-one-on-wechaty/homepage.webp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the teaser to global ai teaser.

对话系统共分为三类:

- 任务型更多是明确的任务目标,并且需要做一个参数化,主要是为了完成一个任务而做的对话系统,为了完成一个需求,比如订票订餐等等任务。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the useless line here.

- 任务型更多是明确的任务目标,并且需要做一个参数化,主要是为了完成一个任务而做的对话系统,为了完成一个需求,比如订票订餐等等任务。

- 问答型,同样也有任务目标,但是没有明确的参数化的请求,通常是一问一答,上下文匹配,用户提出一个问题,机器会在库里找一个相似的问题,把对应的答案推给用户,更多的时候是一个单人对话,而任务型更多的是一个多人对话,较复杂。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the useless line here.

点击 Application Information, 获取APP ID
![step4](/assets/2020/04-how-to-build-a-chatbot-from-zero-to-one-on-wechaty/step4.webp)

- 任务2 - 将LUIS RESTFUL API 接入wechaty
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to ### 任务2: 将LUIS RESTFUL API 接入wechaty

根据已有的LUIS 配置写示例代码
![step02](/assets/2020/04-how-to-build-a-chatbot-from-zero-to-one-on-wechaty/step02.webp)

- 任务3:运行代码
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to ### 任务3:运行代码

输入命令[git clone](https://github.com/lijiarui/chatbot-zero-to-one)
![gitclone](/assets/2020/04-how-to-build-a-chatbot-from-zero-to-one-on-wechaty/gitclone.webp)

- 任务4:运行代码
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to ### 任务4:运行代码

运行 npm run start
![run](/assets/2020/04-how-to-build-a-chatbot-from-zero-to-one-on-wechaty/run.webp)
用户发送,即可得到测试回复
![sand](/assets/2020/04-how-to-build-a-chatbot-from-zero-to-one-on-wechaty/sand.webp)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks strange you put an image in the middle of a sentence.

Please add the image in a new line.

### Welcome

Bot Friday Club 报名方法
![welcome](/assets/2020/04-how-to-build-a-chatbot-from-zero-to-one-on-wechaty/welcome.webp)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks strange you put an image in the middle of a sentence.

Please add the image in a new line.

@lijiarui
Copy link
Member

lijiarui commented Sep 1, 2021

@gangena Please make GitHub action green.

@huan
Copy link
Member

huan commented Mar 30, 2022

Merge for preparing

@huan huan merged commit ed5c677 into wechaty:main Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants