Quickstart
From zero to a working AI conversation agent in under 5 minutes.
1
Install TrueNorth
Install via pip (Python 3.9+):
pip install truenorth-frameworkOr Node.js:
npm install truenorthOr Go:
go get github.com/amareshhebbar/truenorth/sdk2
Set your API key
TrueNorth works with any OpenAI-compatible provider:
# OpenAIexport OPENAI_API_KEY=sk-...# Anthropicexport ANTHROPIC_API_KEY=sk-ant-...# Local via Ollama — no key needed3
Create your schema
Create my_agent.yaml:
id: my_first_agentpersona: "You are a helpful assistant named Alex."fields: - name: user_name type: text required: true question: "What's your name?" - name: email type: email question: "What's your email address?" - name: inquiry type: text question: "How can I help you today?"output_template: inquiry_v14
Run the engine
from truenorth import Engine, Schemaschema = Schema.load("my_agent.yaml")engine = Engine(schema=schema)session = engine.create_session(user_id="user_123")while not session.is_complete: user_input = input(f"Agent: {session.last_message}\nYou: ") session = engine.chat(session.id, user_input)print(session.output.json())Expected output:
{ "user_name": "Priya", "email": "priya@example.com", "inquiry": "I need help with my subscription", "_meta": "turns": "cost_usd": "confidence": 0.94 }}Next steps
Try the Playground for a live browser demo, or read about the 13-stage engine architecture.