Loading repository dataβ¦
Loading repository dataβ¦
derevyan / repository
Build, simulate & run AI-powered chat flows - visual flow builder, multi-agent workflows, Theory-of-Mind state tracking, versioned prompts & a CRM, shipped to Telegram. Made for my wife π and a test of how far AI agents can take one developer.
Built for my wife π β and built by pushing AI coding agents about as hard as they'll go. One developer, ~3 months, one very ambitious experiment.
Journey is a no-code platform for building, simulating, and running automated chat flows β drag-and-drop conversations powered by AI agents and delivered over messaging channels like Telegram. Design a flow visually, test it in a live simulator, then let the runtime engine execute it for real users.
Building a conversational product β an onboarding sequence, a support bot, a survey, a lead-nurture flow β usually means writing and wiring up a lot of custom code. Journey turns that into something you can draw: lay the conversation out as a flowchart, drop in AI agents where you need intelligence, branch on user input or logic, and connect it to messaging, webhooks, and a CRM. Test the whole thing in a simulator, then publish it to run against real users on Telegram.
Typical use cases: product onboarding, support triage, questionnaires & assessments, lead qualification, and coaching / follow-up flows.
Compose conversations on a canvas from typed, drag-and-drop nodes:
{{variable}}) with mapping and preview, plus voice-director prompts that shape text-to-speech output.| Flow builder β drag-and-drop node canvas | Flow library β your active flows |
|---|---|
| Agent builder β multi-agent workflows | MindState β mood / focus / stress tracking |
|---|---|
| Prompt builder β versioned prompt editor | CRM β drag contacts across pipeline stages |
|---|---|
| Dashboard β workspace overview | Users β audience & Telegram contacts |
|---|---|
@hono/node-server), run with tsx@aws-sdk/client-s3)tsx (no separate build step in dev)journey/
βββ apps/
β βββ web/ # React frontend
β β βββ src/
β β βββ features/ # Feature modules
β β βββ shared/ # Shared components, hooks, lib
β β βββ stores/ # Global stores
β β βββ routes/ # TanStack Router pages
β β βββ providers/ # React context providers
β β βββ hooks/ # App-wide hooks
β β βββ data/ # Sample journeys and fixtures
β βββ api/ # Hono API server (Node.js)
β β βββ src/
β β βββ modules/ # Domain modules and routers
β β βββ services/ # Business logic
β β βββ adapters/ # External integrations (Telegram, β¦)
β β βββ event-bus/ # Event bus utilities
β β βββ config/ # Config and env handling
β β βββ lib/ # Shared helpers
β βββ mcp/ # MCP service (Node.js)
β βββ src/
β βββ routes/ # MCP HTTP endpoints
β βββ services/ # MCP manager and orchestration
β βββ config/ # MCP config
βββ packages/
β βββ engine/ # Journey runtime engine
β βββ engine-integrations/ # Engine integrations
β βββ schemas/ # Zod schemas and shared types
β βββ db/ # Database schema and client
β βββ logger/ # Structured logging
β βββ llm/ # LLM utilities
β βββ mindstate/ # Mindstate utilities
β βββ ai-report/ # AI-optimized session reports
β βββ infra/ # Shared infrastructure helpers
β βββ mcp/ # MCP client and types
βββ docs/ # Project documentation
βββ scripts/ # Repo scripts
Prereqs:
Setup:
pnpm install
# Copy env files, then fill in secrets + LLM keys (generation hints are in the files)
cp apps/api/.env.example apps/api/.env
cp packages/db/.env.example packages/db/.env
cp apps/web/.env.example apps/web/.env
# Start infra, create the schema, and seed demo data
docker compose -f service/docker/docker-compose.yml up -d # Postgres + Redis + MinIO
pnpm db:reset-full
# Run everything (web :3000 Β· api :3001 Β· mcp :3002)
pnpm dev
Then log in with the demo credentials below. Other useful commands:
pnpm typecheck
pnpm test
See START.md for the full setup walkthrough, including Telegram bot setup.
See START.md for setup details. After seeding, use:
| User | Password | |
|---|---|---|
| Demo User | demo@journey.app | demo1234 |
| Arina | arina@journey.app | arina1234 |
Start here:
β οΈ Heads up β read before using
I built this for my wife, for fun. It's heavily vibe-coded (AI-assisted, fast-and-loose) and shared as-is under the MIT license. It is not production-hardened: expect rough edges, sharp corners, and missing safeguards.
Use at your own risk. Don't point it at