OmniHealth AI Bot is a Node.js-based chatbot application designed to provide helpful health-related assistance. It leverages OpenRouter's API to interact with advanced AI models like OpenAI's GPT-3.5-turbo or GPT-4.
- Accepts user input via a POST request to the
/aiendpoint. - Processes user messages using AI models to generate intelligent and helpful responses.
- Configurable to use different AI models (e.g., GPT-3.5, GPT-4, Claude).
- Includes error handling for invalid input and API failures.
- Node.js (v14 or later)
- An OpenRouter API key
- A
.envfile with the following variables:OPENROUTER_API_KEY=your_openrouter_api_key PORT=3000
-
Clone the repository:
git clone https://github.com/your-repo/omnihealth-ai-bot.git cd omnihealth-ai-bot -
Install dependencies:
npm install -
Create a
.envfile and add your OpenRouter API key:OPENROUTER_API_KEY=your_openrouter_api_key PORT=3000 -
Start the server:
node index.js
-
Send a POST request to the
/aiendpoint with a JSON body:{ "message": "Your health-related question here" } -
Example response:
{ "reply": "Here is a helpful response to your question." }
- The bot is configured to act as a helpful health assistant.
- You can customize the AI model and system prompt in the code.
- Node.js
- Express
- Axios
- JavaScript
👤 Joel Chi
- GitHub: @abongsjoel
- Twitter: @thierryjoel10
- LinkedIn: Joel Chi
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.