Google Drive Integration - Getting Started
This guide will help you connect Google Drive to Demeterics and create your first custom prompt for AI Chat.
Overview
Demeterics integrates with Google Drive to let you create, edit, and manage AI prompts (.dmt files) directly from your Drive. This enables:
- Prompt versioning - Use Google Drive's built-in version history
- Team collaboration - Share prompts with teammates using standard Drive sharing
- Multiple variants - Store US, EU, APAC versions in a single file
- A/B testing - Randomly select variants to test what works best
Privacy-First Permissions
Demeterics uses restricted Google Drive scopes:
| What we CAN do | What we CANNOT do |
|---|---|
| Access files you create with Demeterics | See your other Google Drive files |
| Access files you explicitly open with Demeterics | List or search your Drive contents |
Create new .dmt files in your Drive |
Access your documents, photos, or other files |
Step 1: Connect Google Drive
- Go to https://demeterics.ai/drive/install
- Click "Connect Google Drive"
- Sign in with your Google account (if not already signed in)
- Review the permissions and click "Allow"
You'll see a confirmation that Google Drive is connected.
Step 2: Create Your First Prompt
Option A: Create from Demeterics
- After connecting, you'll be redirected to the Prompt Editor
- Enter a name for your prompt (e.g., "Customer Support Agent")
- Write your system prompt in the editor
- Click "Save to Drive"
Your prompt is now saved as a .dmt file in your Google Drive.
Option B: Create from Google Drive
- Open Google Drive
- Click "+ New" button
- Select "More → Demeterics Prompt"
- The Demeterics editor opens in a new tab
- Write your prompt and save
Step 3: Add Variants (Optional)
Variants let you store multiple versions of the same prompt:
- In the editor, click the "+" button next to the variant tabs
- Enter a variant name (e.g., "US", "EU", "Formal", "Casual")
- Choose whether to copy content from the current variant
- Edit the new variant's content
- Save to Drive
Setting the default variant:
- Click the dropdown menu (⋮) on any variant tab
- Select "Set as default"
Step 4: Use in AI Chat
Now let's use your prompt in an AI Chat agent:
Create or Edit an Agent
- Go to your AI Chat agent:
https://demeterics.ai/ai-chat/DEM-XXXXXXX - Navigate to Prompts section
- Click on an existing prompt or create a new one
Select Prompt Source
In the prompt editor, you'll see two options:
| Source | Description |
|---|---|
| Custom | Write prompt directly in Demeterics (current experience) |
| Prompt Drive | Select a .dmt file from your Google Drive |
Using Prompt Drive
- Select "Prompt Drive" as the source
- Choose your prompt file from the dropdown (e.g., "Customer Support Agent")
- Select a variant:
- Auto - Randomly selects a variant for A/B testing
- Specific variant - Always uses the selected variant (A, B, US, EU, etc.)
- Save the agent configuration
Step 5: Test Your Agent
- Go to
https://demeterics.ai/ai-chat/test/DEM-XXXXXXX - Start a conversation
- The AI will use your prompt from Google Drive
Tip: If using "Auto" variant selection, check the interaction logs to see which variant was used.
Managing Your Prompts
Edit a Prompt
From Demeterics:
- Go to your agent's prompt settings
- Click the edit icon next to the Prompt Drive file
From Google Drive:
- Find your
.dmtfile in Google Drive - Double-click to open in Demeterics editor
- Make changes and save
Sync Behavior
When you edit a prompt in the Demeterics editor:
- Changes are saved to Google Drive (source of truth)
- A synced copy is stored in Demeterics for fast access by
api.demeterics.com - Your AI Chat agents automatically use the latest version
Version History
Google Drive maintains version history for your .dmt files:
- Right-click the file in Google Drive
- Select "Manage versions"
- View or restore previous versions
File Format Reference
.dmt files are JSON with the following structure:
{
"version": "1.0",
"type": "prompt",
"name": "Customer Support Agent",
"description": "System prompt for support chatbot",
"default_variant": "US",
"variants": {
"US": {
"content": "# Customer Support Agent\n\nYou are a helpful support agent...",
"notes": "For US customers"
},
"EU": {
"content": "# Customer Support Agent\n\nYou are a GDPR-compliant agent...",
"notes": "GDPR-compliant version"
}
}
}
Troubleshooting
"Google Drive not connected"
- Go to https://demeterics.ai/drive/install
- Click "Connect Google Drive"
- Complete the OAuth flow
"Prompt not found"
- Ensure the
.dmtfile exists in your Google Drive - Check that you have access to the file
- Try disconnecting and reconnecting Google Drive
"Failed to save"
- Check your internet connection
- Ensure you have write access to the file
- Try refreshing the page and saving again
Keyboard Shortcuts {#keyboard-shortcuts}
The Demeterics Drive editor supports these keyboard shortcuts:
| Shortcut | Action |
|---|---|
Ctrl+S (Windows) / Cmd+S (Mac) |
Save to Google Drive |
Escape |
Close dropdown menus |
Auto-save: The editor automatically saves your changes every 30 seconds when modifications are detected.
Editor Features
Menu Bar
The editor includes a familiar menu bar:
- File - New, copy, share, and manage files
- Edit - Add, rename, duplicate, and delete sections
- View - Toggle preview mode and full-width editing
- Marketplace - Browse and import pre-built promptlets
- Help - Access documentation and support
Section-Based Editing
Each prompt can contain multiple sections:
- Click "+ Add Section" to create a new section
- Give each section a descriptive title
- Write content using Markdown formatting
- Drag sections to reorder them
Preview Mode
Toggle between:
- Edit mode - Write and format your prompt
- Preview mode - See how the formatted prompt looks
Best Practices
- Use descriptive names - "Customer Support - Holiday Season" instead of "Prompt 1"
- Add variant notes - Document what each variant is for
- Set a default variant - Ensure there's always a fallback
- Use folders - Organize prompts in a "Demeterics" folder in your Drive
- Share with team - Use Drive's sharing for collaboration
- Use sections - Break prompts into logical sections (personality, instructions, knowledge)
Next Steps
- Promptlet Marketplace - Browse pre-built prompt sections
- AI Chat Documentation - Full AI Chat reference