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);
api.register((error, body) => {
console.log(body);
});
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.