Zotero Integration
The Agent Bayes Zotero plugin lets you include items from your Zotero library — together with their PDF attachments — into Agent Bayes knowledge bases, without leaving Zotero.
Requirements
- Zotero 7, 8 or 9 installed.
- An Agent Bayes account with an API key (available in your account settings).
- The Agent Bayes Zotero plugin XPI downloaded from settings or the website.
Install the plugin
- Download the latest
agent-bayes.xpifrom your account. - In Zotero, open Tools → Plugins.
- Click the gear icon → Install Plugin From File… and select the XPI.
- Restart Zotero.
Connect your account
- Open Settings → API Keys in the Agent Bayes web app and create a new key. Copy it immediately — it's shown only once.
- In Zotero, open Preferences → Agent Bayes.
- Paste the key into the API key field.
- Click Test Connection. You should see a success indicator inline.
Include items in a knowledge base
Select any regular item in your Zotero library. An Agent Bayes panel appears in the item pane on the right (see screenshot above). This panel lets you include any attachment in any of your KBs:
- The KB dropdown lists every knowledge base on your account — select one to index into.
- The file list shows all PDF attachments on the item, along with their page count and estimated indexing credit cost.
- Clicking Index starts indexing the file into the selected KB. You can index multiple files from the same item — they will be grouped under the same document record, mirroring Zotero's data model.
- Once indexed, click Remove to remove the file from the KB.
- Removing the last file from a document removes the document record from the KB too.
- A single item can live in multiple KBs at once, with no additional indexing cost.
Indexing happens server-side and may take anywhere from several minutes to a few hours (for a 1,000-page dissertation). The panel streams progress while files are processing. Canceling an in-progress indexing job is possible from the web app's KB detail page, but not from the Zotero plugin.
Keep metadata in sync
Each time Zotero starts, the plugin audits all indexed items against Agent Bayes and flags any divergence in metadata — title, authors, or year. When you focus a flagged item, the Agent Bayes panel shows a button to resolve it inline. For a broader view, open the Sync Issues dialog to review and resolve all issues at once. Sync is bidirectional — you can apply Zotero's values to the server or the server's values back to Zotero.
The plugin detects two kinds of issues:
- Metadata diverged — local item and server document disagree on title, authors, or year. Resolve individually with Use Zotero / Keep Server, or in bulk with All Zotero / All Server.
- Orphaned on server — the server references a Zotero item key that no longer exists locally. Resolve with Delete from Server (permanent) or Disassociate (keeps the server document but unlinks it from Zotero).
Acknowledged issues stay dismissed unless either side changes again.
Credit balance in Zotero
The item panel shows your current Agent Bayes credit balance, which refreshes after every upload. If your balance is running low, a warning label appears next to it. Each file in the list shows its estimated indexing cost — if that estimate exceeds your available balance, the Index button for that file is disabled until you top up.