Using gptel with nov.el to generate contextual Org notes while reading EPUBs

Hey folks,

I'm trying to build a smooth workflow for reading books in Emacs and taking AI-assisted notes using gptel. Here's what I have in mind:

  • I read EPUBs using nov.el.
  • In other window, I keep an Org file open for notes.
  • I select a passage in nov-mode, then send it to GPT (via gptel) to generate a concise summary or commentary.
  • The AI response is inserted into the Org buffer, ideally keeping the context from previous notes in the same session.

My main goal is to maintain a single chat session per book, so that GPT can provide better, more coherent responses by keeping the flow of previous inputs and outputs.

The issue I’m facing is that gptel-mode doesn’t work in nov-mode (since it's read-only), so I can’t use it directly there to maintain the conversation. I’m considering using a separate Org buffer to handle the GPT conversation, while just sending selected regions from nov-mode.

Does anyone have experience with something like this? Suggestions or improvements welcome! Would love to hear if others are doing similar things, or have found good patterns for AI-assisted note-taking while reading.

Thanks!