|
1 |
| -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). |
| 1 | +This is a demo that showcases using CopilotKit to build a PowerPoint like web app. |
2 | 2 |
|
3 | 3 | ## Getting Started
|
4 | 4 |
|
5 |
| -First, run the development server: |
| 5 | +### 1. install the needed package: |
| 6 | + |
| 7 | +```bash |
| 8 | +npm i |
| 9 | +``` |
| 10 | + |
| 11 | +### 2. Set the required environment variables: |
| 12 | + |
| 13 | +copy `.env.local.example` to `.env.local` and populate the required environment variables. |
| 14 | + |
| 15 | +> ⚠️ **Important:** Not all users have access to the GPT-4 model yet. If you don't have access, you can use GPT-3 by setting `OPENAI_MODEL` to `gpt-3.5-turbo` in the `.env.local` file. |
| 16 | +
|
| 17 | +### 3. Run the app |
6 | 18 |
|
7 | 19 | ```bash
|
8 | 20 | npm run dev
|
9 |
| -# or |
10 |
| -yarn dev |
11 |
| -# or |
12 |
| -pnpm dev |
13 |
| -# or |
14 |
| -bun dev |
15 | 21 | ```
|
16 | 22 |
|
17 | 23 | Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
18 | 24 |
|
19 | 25 | You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
20 | 26 |
|
21 |
| -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. |
22 | 27 |
|
23 |
| -## Learn More |
| 28 | +### 4. Use the Copilot |
| 29 | +TODO add details what to do as a user |
| 30 | + |
| 31 | +## Zoom in on the CopilotKit code |
| 32 | + 1. Look for `/api/copilotkit/route.ts` and `/api/copilotkit/tavily.ts` - for the research agent integrated into the spreadsheet |
24 | 33 |
|
25 |
| -To learn more about Next.js, take a look at the following resources: |
| 34 | + 2. Look for `useMakeCopilotReadable` to see where frontend application context is being made accessible to the Copilot engine |
26 | 35 |
|
27 |
| -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
28 |
| -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
| 36 | + 3. Search for `updateSpreadsheet`, `appendToSpreadsheet`, and `createSpreadsheet` to see application interaction hooks made available to agents. |
29 | 37 |
|
30 |
| -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! |
31 | 38 |
|
32 |
| -## Deploy on Vercel |
33 | 39 |
|
34 |
| -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. |
| 40 | +## Learn More |
| 41 | + |
| 42 | +To learn more about CopilotKit, take a look at the following resources: |
35 | 43 |
|
36 |
| -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
| 44 | +- [CopilotKit Documentation](https://docs.copilotkit.ai/getting-started/quickstart-chatbot) - learn about CopilotKit features and API. |
| 45 | +- [GitHub](https://github.com/CopilotKit/CopilotKit) - Check out the CopilotKit GitHub repository. |
| 46 | +- [Discord](https://discord.gg/6dffbvGU3D) - Join the CopilotKit Discord community. |
0 commit comments