Overview
AI Chat Assistant (command AI) is a chat panel built into POKY that talks directly to POKY LLM, Claude, ChatGPT, or Gemini โ not a browser tab to a consumer chat website. A system prompt describing POKY, plus a few live facts pulled from your current session (open spectra, chemical shift lists, the selected view), are automatically included so answers can be grounded in what you're actually looking at.
Access it from Utilities โ AI Chat Assistant, or type its command code AI.
s.open_pymol(pdb_path)) and will use that instead of inventing a launcher.
API Key Setup (Claude / ChatGPT / Gemini)
Chatting through a provider's real API requires an API key from that provider โ this is a different, developer-facing credential from your regular claude.ai / chatgpt.com / gemini.google.com login, and it's the only way a third-party desktop application like POKY can actually send and receive messages (there is no public "sign in with your browser session" option for any of these APIs).
- Pick a provider from the dropdown, then click Get API Key... โ this opens that provider's key-creation page in your browser.
- Create a key there and copy it.
- Paste it into the Paste API key field in POKY and click Save Key.
The key is saved locally in a small file (~/.poky_aichat.json) and is only ever
sent to that same provider's API โ you won't need to re-enter it on this machine.
Usage & POKY Context
Type a question and press Enter or click Send. Each provider is called with:
- A fixed system prompt establishing that the assistant is helping a POKY
NMR software user, and pointing it at the live manual URL
(
poky.clas.ucdenver.edu/poky_releases/manual). - If "Include live POKY session context..." is checked (the default), a short summary of the current session โ open spectra, chemical shift lists, and the currently selected spectrum view โ appended to the system prompt.
- The same checkbox also triggers a quick manual lookup: your question is matched by keyword against a list of manual pages/topics, and the 1-2 best-matching pages are fetched live from the hosted manual and included as excerpts (with their URLs) โ so answers can reflect recently-added or changed pages rather than only what a model was trained on.
- The running conversation history from this chat panel, so follow-up questions keep context within the same session.
Clear chat resets the conversation history (and the on-screen transcript) so the next message starts fresh.
Privacy & Data
Nothing is sent anywhere until you type a message and click Send. At that point, your message,
the fixed system prompt, and (if enabled) the short session-context summary are sent to
whichever provider you selected, using your own saved API key โ subject to that provider's own
terms of use and data-handling policy, not POKY's. No spectra, peak lists, or raw project files
are ever transmitted; only the short text summary described above. If manual lookup is enabled,
your typed question (only its keywords are used) also results in a plain page fetch to
poky.clas.ucdenver.edu to retrieve manual excerpts - that request goes to POKY's own
manual server, not to the AI provider.