1 Star 0 Fork 1

Chatopera / chatopera-sample-java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Chatopera开发者平台:809987971, 点击链接加入群聊

chatopera-sample-java

企业聊天机器人-Java 端示例程序

本教程介绍如何使用 Chatopera 机器人开发者平台的 Java SDK 与机器人进行集成,阅读本教程需要 20 分钟时间。

快速开始

参考系统集成#快速开始,并完成注册账号-创建机器人-导入知识库文件-获取ClientId和Secret几个步骤。

获取源码

git clone https://github.com/chatopera/chatopera-sample-java.git

安装

cd chatopera-sample-java/app
mvn install

执行程序

在完成如上步骤后,修改程序的配置文件,使用文本编辑器打开src/main/resources/sample.properties,并设置如下内容:

chatbot.clientId=机器人的ClientId
chatbot.secret=机器人的Secret

然后执行命令

cd chatopera-sample-java/app
mvn clean compile exec:java -Dexec.mainClass="com.chatopera.bot.sample.App"

可以看到控制台打印从知识库获得的回复,程序执行完毕,以上。

开发者文档

关于项目配置,机器人的 Java 接口等更多细节,请参考开发者文档

Trouble Shooting

参考文档中心/系统集成/常见问题

开源许可协议

Copyright (2018) 北京华夏春松科技有限公司

Apache License Version 2.0

Copyright 2018-2020, 北京华夏春松科技有限公司. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.

chatoper banner

空文件

简介

🚀 聊天机器人,Java端示例程序,聊天机器人云平台 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/chatopera/chatopera-sample-java.git
git@gitee.com:chatopera/chatopera-sample-java.git
chatopera
chatopera-sample-java
chatopera-sample-java
master

搜索帮助