Files
indexipro/server/src/prompt.js
T
juli cbb76dbf19 Simpler AI connection that works with any AI app
- Connect AI: make one address, paste it as a custom connection in any
  MCP-capable app, then copy a short start message into a new chat
- Start message holds no secret; page shows when the AI has connected
- Dashboard gets a Start AI research button
2026-11-12 17:59:27 +01:00

13 lines
993 B
JavaScript

import { getSetting } from './db.js';
import { config } from './config.js';
/**
* The short message that starts a research session in a chat where the IndexiPro connector is
* already set up. It contains no secret (the connector carries the key), so it can safely be
* put in a "new chat" link. The detailed working instructions come with the connector itself.
*/
export function sessionPrompt({ siteUrl }) {
const name = getSetting('collection_name', config.collectionName);
return `Please work on our IndexiPro collection "${name}". Use the IndexiPro tools and follow the instructions that come with them: take the next unprocessed items one at a time, research each one in depth, fill in everything you can, and ask us when you need a better photo. When you're done, give me an honest report in plain language: what you found, what you're not sure about, and what needs more information. If you can't see any IndexiPro tools, tell me to open ${siteUrl} and go to "Connect AI".`;
}