AI Assistant - Quick Start
Get started with the AI Assistant in 3 minutes
AI Assistant - Quick Start Guide
Get started with the Logicarium AI Assistant in 3 minutes.
Prerequisites
- OpenSSL installed (for HTTPS support)
- Anthropic API key
Step 1: Get API Key
- Go to console.anthropic.com
- Sign up or log in
- Navigate to "API Keys"
- Click "Create Key"
- Copy the key (starts with
sk-ant-api03-)
Step 2: Create Config File
Create ai_config.json in the same folder as Logicarium.exe:
{
"provider": "anthropic",
"endpoint": "https://api.anthropic.com/v1/messages",
"apiKey": "sk-ant-api03-YOUR_KEY_HERE",
"model": "claude-3-5-sonnet-20241022",
"maxTokens": 4096,
"temperature": 0.7
}Replace YOUR_KEY_HERE with your actual API key!
Step 3: Use the AI Assistant
- Launch Logicarium
- Press Tab to open the Script Panel
- Scroll to the bottom to find AI Assistant
- Enter a prompt like:
"Create a simple AND gate circuit" - Click Send
- Wait for the response
- Click Accept to apply the code
Example Prompts
Basic
Create a 2-input AND gateMake an output LEDBuild a NOT gate inverter
Intermediate
Create a half adder circuitBuild an XOR gate from AND and NOT gatesMake a 2-to-1 multiplexer
Advanced
Create a 4-bit ripple carry adderBuild an SR latch using NAND gatesDesign a 3-bit binary counter
Troubleshooting
"Invalid API key"
- Check
ai_config.jsonexists in the correct folder - Verify the API key is correct (no extra spaces)
- Ensure the JSON is valid (use a JSON validator)
"Connection failed"
- Check internet connection
- Verify OpenSSL is installed
- Check firewall settings
"HTTPS not supported"
- Install OpenSSL:
scoop install openssl(Windows) - Rebuild Logicarium with OpenSSL support
Tips
- Start simple: Test with a basic circuit first
- Be specific: Clear prompts get better results
- Review before accepting: Check the generated code
- Iterate: Build complex circuits step by step
- Use context: The AI sees your current script
Cost Estimate
Typical costs per request:
- Simple circuit: $0.01 - $0.03
- Medium circuit: $0.03 - $0.05
- Complex circuit: $0.05 - $0.10
Monitor your usage at console.anthropic.com
Next Steps
- Read the full AI Assistant documentation
- Learn about Custom Gate Definitions
- Explore DSL Reference
- Check out Examples
Need Help?
- Check the FAQ
- See Troubleshooting
- Report issues on GitHub