repl-ai
v0.0.3
Published
To have api connection with repl-ai
Downloads
4
Readme
Installation
npm install repl-ai
Repl-AI Official Site
https://repl-ai.jp/
Usage
const ReplAi = require('repl-ai');
const options ={
x_api_key: YOUR_X_API_KEY
, botId: YOUR_BOT_ID
};
const api = new ReplAi(options);
// If you want to register a new user.
api.register((error, body) => {
console.log(body);
});
// If you want to create dialogue.
const dialogue_options = {
appUserId: YOUR_APP_USER_ID
, voiceText: YOUR_VOICE_TEXT
, appRecvTime: LAST_TALKED_AT
, initTopicId
};
api.createDialogue(dialogue_options, (err, body) => {
console.log(body);
});
More Information
https://repl-ai.jp/docs/references/registration
https://repl-ai.jp/docs/references/dialogue
Caution
This module is not official.