Skip to content

Commit 9336bd7

Browse files
committed
update readme
1 parent 6f1d4c8 commit 9336bd7

File tree

2 files changed

+30
-17
lines changed

2 files changed

+30
-17
lines changed

.env.local.example

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
OPENAI_API_KEY=xxxxxxx
2+
OPENAI_MODEL=gpt-4-1106-preview
3+
TAVILY_API_KEY=xxxxxxx

README.md

+27-17
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,46 @@
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.
22

33
## Getting Started
44

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
618

719
```bash
820
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
1521
```
1622

1723
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
1824

1925
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
2026

21-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
2227

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
2433

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
2635

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.
2937

30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
3138

32-
## Deploy on Vercel
3339

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:
3543

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

Comments
 (0)