Skip to main content
Use AI to quickly generate block code, then paste into Primo and configure fields manually.
A native AI integration is coming soon! Primo’s philosophy is to be a creative tool where AI handles the boring parts and gets out of the way most of the time. The upcoming integration will help with repetitive tasks without being heavy-handed.

Prompt Template

Workflow

1

Generate code

Use the prompt with Claude, ChatGPT, etc.
2

Paste into Primo

Copy generated code into a new block’s code editor.
3

Add fields

Switch to Fields tab and manually add each field with proper types.
4

Test

Preview and refine as needed.

Example

Prompt:
Result:
Then add fields in Primo: icon (Image), headline (Text), description (Text), cta_link (Link)

Common Issues

AI uses export let: Remove it. Fields are globally available in Primo.
Missing null checks: Add them, especially for images and links.
Unnecessary imports: Only import if you actually need Svelte lifecycle hooks or advanced features.

Next Steps

Writing Components

Learn to write components from scratch.

Working with Fields

Master field configuration.