myaskai-js
v2.0.0
Published
This package is used to connect to My AskAI's APIs, like the /query endpoint to ask questions to your AI customer support chatbot
Readme
My AskAI JavaScript SDK
Welcome to the My AskAI, AI customer support, JavaScript SDK! This package allows developers to easily integrate AI-powered customer support and chatbot capabilities into their applications using My AskAI's advanced AI platform.
Features
- AI Customer Support: Automate customer inquiries with high accuracy and respond in real-time.
- Chatbot Integration: Enhance your applications with smart conversational agents.
- Easy to Use: Simple API structure for seamless integration.
- API Access: API access is inlcuded in all paid plans
Installation
Install the package using npm:
npm install myaskai-jsGetting Started
Here's a quick guide on how to setup My AskAI in your JavaScript project.
Importing the SDK
First, import the SDK into your project:
import { MyAskAI } from 'myaskai-js';Initializing My AskAI
Create an instance of My AskAI with your API key and a unique ID:
const myAskAI = new MyAskAI('your_api_key_here', 'your_unique_id_here');Making Queries
You can now use this instance to make queries to the My AskAI API:
async function getAnswer(query) {
const response = await myAskAI.query(query);
if (response) {
console.log('Answer:', response.answer);
// Handle other parts of the response if necessary
} else {
console.log('Failed to get an answer');
}
}Documentation
For more detailed documentation, please visit our homepage.
Support
If you need any help using the SDK or have any questions, please visit our support page.
Enhance Your Application
Leverage the power of AI to improve your customer support and chatbot functionality today by integrating MyAskAI into your application!
For further information and updates, please visit our official website: My AskAI.
