Git Product home page Git Product logo

wechat-chatbot-server's Introduction

wechat-chatbot-server

目前支持文本聊天,同时利用微信公众号的语音识别能力,可实现接收用户语音消息进行文字聊天

demo可搜索关注swordintent公众号

swordintent

maven compile and publish to docker hub

使用方法

注册一个公众号

https://mp.weixin.qq.com/

注册腾讯AI平台

https://ai.qq.com/product/nlpchat.shtml

初始化数据库(可选)

执行src/main/resource/scripts/init-db.sql创建相关表

启动服务

本项目镜像已同步推送至dockerhub,可直接采用docker方式启动,相关配置参数通过docker的环境变量方式传入,参考命令如下

docker run --net=host -e SERVER_PORT=9090 \
    -e WX_APPID=替换 -e WX_SECRET=替换 \
    -e WX_TOKEN=替换 -e WX_AESKEY=替换 \
    -e DB_HOST=127.0.0.1 -e  DB_PORT=3306 -e DB_NAME=yourdbname -e  DB_USER=yourusername -e  DB_PASSWORD=yourpassword \
    -e AI_APPID=替换 -e AI_APPKEY=替换 \
    shadowdk/wechat-chatbot-server

也可使用docker配置文件进行环境变量传递

docker run --net=host --env-file /opt/wechat/docker-env shadowdk/wechat-chatbot-server

docker-env文件如下

SERVER_PORT=替换
WX_APPID=替换
WX_SECRET=替换
WX_TOKEN=替换
WX_AESKEY=替换
DB_HOST=127.0.0.1
DB_PORT=3306
DB_NAME=yourdbname
DB_USER=yourusername
DB_PASSWORD=yourpassword
AI_APPID=替换
AI_APPKEY=替换

微信公众号平台

微信公众平台配置

腾信AI聊天机器人

腾讯AI配置

版权说明

微信公众号部分依赖WxJava - 微信开发 Java SDK(开发工具包)

腾讯AI部分依赖xshuai/taip

站点层部分代码参考自binarywang/weixin-java-cp-demo

wechat-chatbot-server's People

Contributors

liuhe36 avatar dependabot[bot] avatar

Stargazers

DXR avatar haodong avatar Weir avatar TonyZhang avatar  avatar  avatar  avatar Elmer avatar Aiden avatar iacker avatar 五竹是个机器人 avatar Hipparchus_wang avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

wechat-chatbot-server's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.