embedia
Version:
Zero-configuration AI chatbot integration CLI - direct file copy with embedded API keys
55 lines (35 loc) • 1.56 kB
Markdown
This is a Next.js project bootstrapped with `create-next-app` and pre-configured with a custom AI chatbot.
The chatbot was generated using the **AutoChat Integrator**.
First, set up your environment variables:
1. Rename the `.env.local.example` file in the project root to `.env.local`.
2. Open the new `.env.local` file and add your API key:
```bash
OPENAI_API_KEY=your_secret_api_key
GEMINI_API_KEY=your_secret_api_key
```
Next, install the dependencies and run the development server:
```bash
npm install
yarn install
pnpm install
npm run dev
yarn dev
pnpm dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see your new website with the chatbot integrated.
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.