02 Workbench Chat And Prompt Templates

Chat, Changes, And Prompt Templates

Kloker provides several interaction surfaces. Use the right surface for the job.

Changes

Work that should be tracked over time is a change request on Build → Changes: Kloker plans it, and its page follows the questions, issues, merge requests and beads until the change is done. How that works is in From Change Request To Merged Work.

Good uses of a change request:

  • A new integration solution needs analysis.
  • A change needs a design and a plan of issues.
  • A missing data model decision blocks implementation.

Chat

The chat is Ask Kloker, at the top of klok.dev's menu. It is for exploratory questions, quick guidance, and conversational assistance. Use it when the work does not need a change request yet, or to understand the context before you write one.

Ask Kloker in the top bar of every page (⌘I, or Ctrl I) opens Kloker beside the page instead: it knows the page and the record it shows, reads a field where you can see it, and reads your unsaved changes too. On a project, a datamodel or a system it proposes changes to your draft, which you apply part by part before a merge request; how that works is in klok.dev's guide Kloker beside every page.

Kloker answers a chat question the way a colleague who knows the platform would:

  1. It starts from a map of your tenant: the solution registry (integration-solutions in GitLab) and the list of documentation you may read on docs.klok.dev.
  2. It reads what the question is about: a solution document, the solution's legs, topics and datamodels in the integration context, a project's documentation, or a file in Git.
  3. It writes the answer, with links to what it read.

Kloker reads as you: it sees what your GitLab account sees and nothing more. While it reads, the chat shows one line per step ("Reading the solution registry", "Reading KLK003 Klok AI", …), and the answer streams in as it is written. When something could not be read, because you have no access or it is not published, the answer says so.

Choose the mode under the input:

  • Fast answers directly. It is the default and fits most questions.
  • Expert reasons before it answers. It is slower, and better when the answer has to weigh several documents against each other.

A follow-up question continues the conversation, so "and which of those write to Fortnox?" starts from the previous answer. The details are on How Kloker answers.

Kloker's answers are only as good as what it reads. A solution that is built but not described in the solution registry is missing from the map, so keep the solution document current with every leg you add.

Good chat prompts:

  • "Which AI services do we have, and how do I call them?"
  • "Which existing data models look close to this requirement?"
  • "Explain why this route should be an onramp rather than processing."
  • "Summarize the operational risk in this solution draft."

Prompt Templates

Prompt templates standardize recurring AI interactions. They should include enough context slots for tenant, domain, solution, systems, data models, route patterns, and constraints. In klok.dev they are the saved prompts on Kloker → Prompts: Ask Kloker asks for the value of each {{name}} placeholder before it sends a prompt, and Use in chat opens a prompt in Ask Kloker.

Use templates for:

  • Solution analysis.
  • HLD drafting.
  • DDD drafting.
  • Route review.
  • Data model proposal.
  • Troubleshooting summary.
  • Production readiness review.

Good Prompt Practices

  • Include tenant and domain scope.
  • Include actual systems and data models.
  • State whether output is draft, review, or implementation advice.
  • Ask for risks and missing information.
  • Do not include secrets or full sensitive payloads.
  • Ask Kloker to cite source objects or context references where possible.