This package contains art, text, or software code produced using generative AI.
This module acts as a "Prompt Engineer" bridge to external Large Language Models (LLMs) such as Google Gemini, ChatGPT, and Claude. It analyzes internal Foundry VTT data (Actors, Items, Journals) to construct optimized text prompts. The user must manually copy these prompts to the external service and manually paste the result back into Foundry. No content is generated autonomously or applied to the world without explicit user interaction and review.
Phils AI Assistant connects your Foundry VTT world with the power of modern AI (Google Gemini, ChatGPT, Claude, Copilot, Perplexity).
The core feature: You don't need expensive API keys. The module acts as an intelligent "Prompt Engineer". It reads data from your actors, items, or journals, creates the perfect prompt for the AI, and you simply copy it into the chat window of your favorite free AI service.
Key Features:
-
No API Costs: Works with the free web versions of Gemini, ChatGPT, and others.
-
Context-Aware: Automatically reads stats, descriptions, and rules from your items and actors to generate relevant prompts.
-
Chat / Lore Mode: Ask questions about rules or the backstory of an item directly from its sheet.
-
Image Prompts: Generates detailed visual descriptions based on character stats for use in image generators.
-
Update / Edit Mode: Let the AI modify stats, rewrite descriptions, or fix typos in your items and actors.
-
Write Story Mode: Have the AI write creative content or expand upon your Journal entries.
-
Safety First: Automatically creates a backup of your Journal Entry before applying any AI-generated changes.
-
Smart Paste: You can paste the full AI response text, and the module automatically detects and extracts the relevant code or JSON data.
Usage:
-
Click the "Brain Button" in the header of any Actor, Item, or Journal sheet.
-
Select your desired mode (e.g., Chat, Update, Story).
-
Click "Copy & Open AI" to get the optimized prompt.
-
Paste the prompt into your AI service, copy the result, and paste it back into Foundry to apply changes.