obsidian-copilot icon indicating copy to clipboard operation
obsidian-copilot copied to clipboard

Copilot - open API access via javascript

Open dxcore35 opened this issue 2 years ago • 4 comments

Please allow the usage of the plugin from javascript only. You will open whole new world for Templater user. And based on my research non of ChatGPT plugins in Obsidian plugin catalogue has access thru API.

https://forum.obsidian.md/t/templater-js-chatgpt/61755

Please! 🙏🏻

dxcore35 avatar Jun 18 '23 10:06 dxcore35

Hmm, I'm not quite sure what that looks like yet. Can you give some concrete examples?

From that link, I see the example use case is to generate YAML from note content. That can actually be done by using a custom prompt you can define today. Custom prompts are powerful, it just needs the user to provide good examples!

I'm going to post custom prompt tips and tricks regularly on twitter and my youtube channel.

logancyang avatar Jun 19 '23 17:06 logancyang

  • add values to empty YAML fields (based on note content)
  • on specific place in note add summary (based on note content)
  • split note text and create heading based on context (replace or note)
  • simplify difficult english words replace them with common word and after add original word in bracket
  • in TEMPLATER PLUGIN ask user for tag (list will be generated by ChatGPT, based on content)

All these examples are done directly in note content. Meaning user don't need to delete original text, move some block of texts generated by CHATGPT, nor copy paste from Copilot.

dxcore35 avatar Jun 20 '23 08:06 dxcore35

@logancyang Hello is there any tutorial how to create these custom templates?

dxcore35 avatar Sep 01 '23 09:09 dxcore35

+1 for this feature here. I'd love the ability to interact with this plugin via a Javascript API.

My use case is that I primarily use Obsidian as a periodic note journal. I have a weekly note, and I'd be interested in running all of my daily notes through GPT to generate a summary for the week. Then again at the monthly and quarterly level.

Unless there is a way in this plugin to send multiple notes a context to GPT? I couldn't find it :D

demsullivan avatar Nov 15 '23 13:11 demsullivan