Skip to content

curelyai/curelyai_js_package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CurelyAI

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.

Usage

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);
})();