Skip to main content

Contract status

Canonical interface contract The repository defines these modules in the modules overview, MVP spec, v2 port map, and legacy platform notes. Exact v2 HTTP paths are not finalized in one place, but the module responsibilities, shared resources, and event model are clear.

Source documents

aiConnected Knowledge

Module purpose

Knowledge ingests business information and produces deployment-ready knowledge assets for AI systems. The docs describe scraping, gap research, compilation, concern mapping, starter generation, and quiz generation.

Engine components called out in the repo

The v2 port map references:
  • scraper
  • researcher
  • compiler
  • extractor
  • generate
  • ai
  • runtime
  • system-prompt
  • starters
  • concern-mapper
  • quiz

Required knowledge operations

  • Create a knowledge project
  • Start and monitor crawl or scrape jobs
  • Review extracted content and detected gaps
  • Run structured compilation into AI-ready output
  • Publish a knowledge pack for downstream modules
  • Version published knowledge assets

Required knowledge outputs

  • Structured knowledge entries
  • FAQ and service summaries
  • Qualification prompts
  • Conversation starters
  • Quiz assets
  • Published knowledge version metadata

aiConnected Chat

Module purpose

Chat is the customer-facing interaction layer that consumes published knowledge and drives qualification, lead capture, and CRM handoff.

Required chat operations

  • Start a session
  • Send and receive messages
  • Retrieve knowledge-backed answers
  • Capture lead details
  • Store session history
  • Deliver lead data through webhooks or automation connectors

Chat configuration surface

The docs explicitly mention settings for:
  • Quiz requirements
  • Lead-capture timing
  • Session persistence
  • Conversation flow
  • AI provider and BYOK model selection
  • Webhook-based CRM delivery

Shared event model

The v2 port map gives the clearest event contract:

Chat emits

  • chat.session.started
  • chat.message.sent
  • chat.lead.captured
  • chat.lead.warmed
  • chat.session.ended

Chat consumes

  • kb.published
  • contact.updated
  • voice.call.completed

Shared resources

ResourceUsed by
kb_projectsKnowledge
kb_entriesKnowledge
chat_conversationsChat
chat_messagesChat
chat_configsChat
contactsBoth
eventsBoth

Legacy route ancestry

Older platform docs reference:
  • /api/knowledge-base
  • /api/chat/[accountId]
  • /api/sessions
  • /api/leads
Use those as legacy naming signals only. The v2 platform is manifest-first and gateway-routed.

Build guidance

Implement Knowledge publication before Chat answer generation. Chat depends on a clean kb.published flow and shared contact updates to behave like a platform module instead of a standalone widget.
Last modified on April 18, 2026