https://github.com/programmersteve/powerpointwithchatgpt
A simple script that uses openai's "text-davinci-003" model and pptxgenjs to make a quick powerpoint on a specified topic
https://github.com/programmersteve/powerpointwithchatgpt
chatgpt openai-api pptx pptx-files prompt prompt-engineering
Last synced: 6 months ago
JSON representation
A simple script that uses openai's "text-davinci-003" model and pptxgenjs to make a quick powerpoint on a specified topic
- Host: GitHub
- URL: https://github.com/programmersteve/powerpointwithchatgpt
- Owner: ProgrammerSteve
- Created: 2023-02-16T19:46:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-08T22:34:31.000Z (over 1 year ago)
- Last Synced: 2025-03-26T05:51:12.288Z (7 months ago)
- Topics: chatgpt, openai-api, pptx, pptx-files, prompt, prompt-engineering
- Language: JavaScript
- Homepage:
- Size: 70.3 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Note:
- OpenAI has deprecated the "text-davinci-003" model and can't be used anymore## Requirements
- An openai account
- tokens to use ChatGPT## Get an api key
- go to openai.com and signin/signup
- click your profile and click "view API keys"
- click the button that says create new secret key
- create a .env file
- copy and paste the key into the .env file### .env file example
````
API_KEY=example
````## Enter the parameters for your slide at the top of script.js
````
const topic = "how to improve coding skills";
const extra = "talk about Reactjs specifically";
let slideNum = 6;
let bulletMin = 3;
let bulletMax = 5;
let temperature = 0.2;
let max_tokens = 500;
````## Running the script
- Go to the terminal and type "npm run start"
- A folder called presentations will appear with the powerpoint file you created## Prompt can be edited in chatGpt.js
````
let prompt = `
create a power point script on ${topic},response should be in a JSON format similar to the following:
{
"title": "powerPointTitle",
"slides": [
{
"title": "titleName",
"content": [
"string","string","string",...
]
},
...}
Must be ${slideNum} slides long and each content array should have ${bulletMin}-${bulletMax} bullet points for the slide. ${extra}
`;
````#Example of Usage
## Entering Input
## Folder created
## Viewing the powerpoint
