1 Star 0 Fork 1

Chatopera / chatopera-sample-java

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
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

Empty file

About

🚀 聊天机器人,Java端示例程序,聊天机器人云平台 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
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

Search