CurelyAI is a Node.js client library for interacting with the Curely AI API. This package simplifies the process of sending messages to the AI chatbot and receiving responses.
To install the CurelyAI package use yarn or npm:
npm install curelyai
yarn add curelyai
# USAGE CODE
const CurelyAIChat = require('curelyai');
# Initialize the chat client with your bot key
const chatClient = new CurelyAIChat('your_bot_key');
# Send a message and print the response
(async () => {
const response = await chatClient.chat('Hello, how are you?');
console.log(response);
})();