Quick Start Guide
Let’s build a simple AI assistant that’s fully tracked by Lucidic. This guide will have you up and running in 5 minutes.What We’ll Build
A customer support assistant that:- Understands user questions
- Searches for relevant information
- Provides helpful responses
- Tracks everything automatically
Step 1: Setup
First, install the SDK and create a new project:tsconfig.json
:
.env
:
Step 2: Minimal Example
Createminimal.ts
:
Step 3: Full Example
Now let’s build a more complete assistant with steps and evaluation. Createassistant.ts
:
Step 4: View in Dashboard
After running the examples:- Go to your Lucidic Dashboard
- Find your session in the Sessions list
- Click to view the detailed workflow
- See every step, event, and LLM call
- Session overview with success status
- Steps showing the workflow progression
- Events with all LLM calls, costs, and timings
- Metrics including total cost and token usage
Step 5: Add Advanced Features
Multimodal Support
Data Masking
Error Handling
Next Steps
You now have a fully tracked AI assistant! Here’s what to explore next:- API Reference - Complete function documentation
- Examples - More usage patterns and best practices
- Provider Integrations - OpenAI integration details
- Advanced Features - Mass simulations, prompt management
Tips
- Always init before importing - This ensures proper instrumentation
- Use meaningful step names - Makes debugging much easier
- Add evaluation scores - Helps track performance over time
- Let auto-features work - No need to manually end sessions
- Check the dashboard - Visual insights are powerful!