LLM Integration
CTP provides specialized documents that enable AI models to generate compliant tools.Available Documents
Tool Generator
Complete prompt for generating CTP tools
Schema Reference
Compact schema for quick AI lookups
How It Works
- Copy the prompt from the Tool Generator page
- Paste into your AI conversation (Claude, GPT-4, etc.)
- Describe the tool you want to create
- Receive compliant code that follows CTP standards
Example Workflow
Step 1: Provide the Prompt
Copy the entire Tool Generator document and paste it into your AI conversation.Step 2: Request a Tool
Step 3: Receive Complete Implementation
The AI will generate:- TypeScript type definitions
- Complete tool definition
- Tool function implementation
- Export statement
Quick Reference
For quick AI lookups during development, the Schema Reference provides:- Field types and descriptions
- Parameter type options
- Error codes
- Category list
- Common patterns
Supported AI Models
These documents are designed to work with:| Model | Provider | Notes |
|---|---|---|
| Claude 3 | Anthropic | Best results |
| Claude 3.5 Sonnet | Anthropic | Fast, accurate |
| GPT-4 | OpenAI | Good results |
| GPT-4 Turbo | OpenAI | Good results |
| Gemini Pro | Compatible |
Best Practices
Be Specific
Include Features
Mention Edge Cases
Integration Options
Manual Copy-Paste
- Copy the Tool Generator prompt
- Paste into AI chat
- Request your tool
- Copy generated code to your project