Skip to main content
The AI chat is the primary interface of the LeadMagic CLI. Describe the outcome you want and the CLI can load files, inspect columns, clean records, call LeadMagic enrichment tools, query the local database, and export the results.
Running lm with no arguments also starts chat — it’s the default command.

How It Works

When you type a message, the AI:
  1. Interprets your intent — understands whether you want cleaning, enrichment, research, SQL, export, or troubleshooting
  2. Selects tools — picks the right file, database, LeadMagic, recipe, schedule, or outbound action
  3. Executes the workflow — runs steps in order, asks before spending credits, and stores results locally
  4. Streams progress — shows tool calls, progress, and results as the work runs

Example Conversations

Slash Commands

Type / followed by a command name for quick actions. Type /help to see all available commands.

Local Context

The chat has access to your local LeadMagic workspace:
  • Imported CSV and Excel tables
  • Query results and visible table columns
  • Chat sessions and exported transcripts
  • Recipe definitions and schedule history
  • Outbound push history
  • Account status, credits, and pricing
Use @ to reference a file and /table or /columns to inspect the current data view.

AI Routing

The CLI routes AI requests through the LeadMagic AI Gateway. Check routing status with:
Inside chat, use:
This shows the current AI routing status.

Session Management

Chat sessions are automatically saved and can be resumed later. Sessions are stored in the local database and persist across CLI restarts.

Keyboard Shortcuts

Next Steps

Command Reference

All commands for non-chat workflows.

Configuration

Database, model, and theme settings.