A shameless rip-off of Notion AI
I made this because I got jealous of Notion's AI feature.
There are two types of commands: promptless and prompted.
Prompted commands don't require you to select any text, as you give the text you want in a new window that opens when you run the command.
Promptless commands require you to select text: You select the text you want, run the promptless command, and the plugin will use the selected text as the prompt.
It uses ChatGPT
- Create plugins folder in obsidian
- Create a folder called obsidian-ai in the .obsidian directory of your vault
- Add main.js, manifest.json, and styles.css to the recently created folder
- Get the main.js, manifest.json and styles.css from the Releases tab
- Your route should look like: {your_vault}/.obsidian/plugins/obsidian-ai/{the three files here}
- Turn on community plugins
- If you don't see the plugin restart obsidian
- Turn on the plugin
- Go to the settings page of the plugin
- Type the API key in the field
- Restart your vault
- Open the command pallette (ctrl + p) and write "Obsidian AI" to see a list of the available commands
I don't think so. I'm not using their API. I'm using ChatGPT and paying for their API. I'm just using the same name as Notion's AI feature. That last line was created by GitHub Copilot. In all honestly I have no clue and rest assured I'll remove this if Notion comes after me.
Nope, I'm using (and paying for) their API.
Yeah I didn't test this much. If you want it fixed open an issue or a PR.
It really should but I'm not sure. Let me know.
Add more commands, improve the UI and UX because it sucks for now.
You will be sending either the whole content of your current note or whatever you select to OpenAI chat API, be mindful of that
These are the ones that I got from https://github.com/sw-yx/ai-notes/blob/main/Resources/Notion%20AI%20Prompts.md and watching videos on Notion AI.
- Help Me Write
- Continue Writing (promptless)
- Brainstorm Ideas
- Summarize (promptless)
- Find Action Items (promptless)
- Blog Post
- Pros and Cons List
- Social Media Post
- Outline
- Creative Story
- Poem
- Essay
- Meeting Agenda
- Press Release
- Job Description
- Sales Email
- Recruiting Email
- Improve writing
- Fix spelling and grammar
- Explain this
- Make longer
- Make shorter
- Use simpler language
Either because I don't have the "original" prompt or because I don't know how they work/if there are already above. It probably won't work the same as Notions AI feature but I can mess around and find prompts that work
- Translate
- Help me edit
- Help me write
-
Link: https://github.com/sw-yx/ai-notes/blob/main/Resources/Notion%20AI%20Prompts.md
- Creator: sw-yx
- Repository: ai-notes
- Platform: GitHub
-
Link: https://lspace.swyx.io/p/reverse-prompt-eng
- Creator: sw-yx
- Platform: personal website