Skip to Content
Minds API

Minds API

Build AI personas trained on custom knowledge and embed them anywhere — via the Trigglio API.

Overview

Minds are AI-powered personas that can be trained on your content and deployed as conversational agents. The Minds API lets you:

  • Create Minds with custom names, personalities, and system prompts
  • Feed knowledge from documents, URLs, YouTube videos, and podcasts
  • Monitor processing status and receive webhook callbacks when done
  • Publish Minds to make them accessible via their public URL

Quick Start

1. Create an API Key

Go to Settings > API Keys in your dashboard and create a key with minds:read and minds:write scopes.

2. Create a Mind

curl -X POST "https://trigglio.com/api/v1/minds" \ -H "Authorization: Bearer tr_live_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Product Expert", "headline": "Your AI product specialist", "systemPrompt": "You are a helpful product expert. Answer questions based on your knowledge base." }'

3. Add Knowledge

curl -X POST "https://trigglio.com/api/v1/minds/{mindId}/knowledge" \ -H "Authorization: Bearer tr_live_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Product Documentation", "type": "url", "url": "https://docs.example.com/product-guide", "callbackUrl": "https://your-server.com/webhooks/trigglio" }'

4. Wait for Processing

Knowledge sources are processed asynchronously. You can either:

  • Poll the source status endpoint: GET /api/v1/minds/{mindId}/knowledge/{sourceId}
  • Receive a webhook at your callbackUrl when processing completes

5. Publish

curl -X POST "https://trigglio.com/api/v1/minds/{mindId}/publish" \ -H "Authorization: Bearer tr_live_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "isPublished": true }'

Your Mind is now live at https://trigglio.com/m/{slug}.

Required Scopes

ScopeDescription
minds:readList and view Minds
minds:writeCreate, update, delete, publish Minds, and manage knowledge sources

Knowledge Source Types

TypeDescriptionInput
urlWeb page contenturl field
documentPDF, DOCX, TXT, MD filesUpload file first, then use fileUrl
youtubeYouTube video transcriptsyoutubeUrl field
podcastAudio file transcriptionsUpload file first, then use fileUrl

Processing Lifecycle

pending → processing → ready ↘ failed pending → processing → transcribing → ready ↘ failed

Sources that need audio transcription (YouTube videos without captions, podcasts) go through an additional transcribing step.

Webhook Callbacks

When you provide a callbackUrl on a knowledge source, Trigglio will send a POST request when processing finishes:

{ "event": "knowledge.processed", "sourceId": "src_abc123", "mindId": "mind_xyz789", "status": "ready", "chunkCount": 42, "error": null, "timestamp": "2024-06-15T10:30:00.000Z" }

The request includes an X-Trigglio-Signature header (HMAC-SHA256) for verification.

Next Steps

Last updated on