Request a demo
AI drafting

A first draft, never the final word

Two drafting endpoints: a letter body in Markdown that uses the template merge fields instead of typed facts, and a three-to-four sentence resume summary built only from the consultant profile. Both are reviewed by a person before anything is sent, and both say so plainly when no model is available.

Draft a letter

Instructions in, Markdown with merge fields out

POST /api/ai/draft-letter takes a letter kind, a country or a person, and instructions in plain words. The model is told to write the body of the letter in Markdown, to use merge fields such as {{person.full_name}}, {{person.start_date}} and {{entity.legal_name}} where the facts belong, and never to invent salary, dates, legal terms or policies that are not in the instructions: anything missing becomes a [placeholder].

The result is a title and a body. Create a template from it (POST /api/templates), review it in the template editor, have counsel approve it, and then use it like any other.

Drafting a letter body
curl -X POST https://peoplehq.example.com/api/ai/draft-letter \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"kind": "other", "country": "CA",
       "instructions": "A letter confirming a move from part-time to full-time from a given date, same manager, salary to be filled in"}'
app.insightpeoplehq.com/templates/ca.offer_employeeDemo data
Template editor for Offer letter: employee (Canada) with the note that provincial employment standards govern notice, vacation and termination and counsel should draft the termination clause; preview for ChloƩ Tremblay.
A drafted body becomes a template like this one: Markdown with merge fields, previewed for a real person before anyone uses it.
Summarise a profile

Only what the profile says

POST /api/ai/resume-summary/{person} writes a short professional summary from the consultant profile, using only the facts in it: no superlatives and no invented numbers. You save it to the profile if you want it.

app.insightpeoplehq.com/people/arjun-mehta · Profile & resumeDemo data
Arjun Mehta’s Profile & resume tab: a consultant profile form (headline, summary, skills, experience, education, certifications) beside the resume rendered on the Northwind Labs India letterhead with a Print / PDF button.
The consultant profile on the left; the branded resume it renders on the right, on the letterhead of the entity the consultant works for.
Your model, or none

Off means off

Drafting uses the Insight platform’s model connection: Claude on Amazon Bedrock by default, or another provider you configure. With PEOPLEHQ_AI=false, no model configured, or a model that cannot be reached, the endpoints answer with a clear “No model is available” message instead of guessing. A model that fails is remembered for five minutes, so a misconfigured server does not wait on every request.

GET /api/ai/status says whether drafting is on, and which provider and model are in use.

SettingEffect
PEOPLEHQ_AI=true (default)Drafting on when a model is reachable
PEOPLEHQ_AI=falseDrafting off; endpoints say so
INSIGHT_LLM_PROVIDERbedrock, azure_openai, vertex, oci or openai
INSIGHT_CHAT_MODELThe model id for the provider
How it works

A drafted letter goes through the same review as any template

A drafted letter goes through the same review as any template 1InstructionsKind, country orperson, and what theletter must say.2AIDraftMarkdown body withmerge fields and[placeholders] foranything missing.3HR reviewEdited in thetemplate editor andpreviewed for a realperson.4CounselApproves the copy;the legal-review flagis cleared.5UseLetters made, sentand signed like anyother.With no model configured, drafting is simply unavailable; every other feature works the same.A drafted letter goes through the same review as any template 1InstructionsKind, country or person, and whatthe letter must say.2AIDraftMarkdown body with merge fieldsand [placeholders] for anythingmissing.3HR reviewEdited in the template editor andpreviewed for a real person.4CounselApproves the copy; thelegal-review flag is cleared.5UseLetters made, sent and signed likeany other.With no model configured, drafting issimply unavailable; every otherfeature works the same.
Nothing drafted is sent to anyone without a person making a document from it.
Questions it answers

What you can find out

Each answer is on a screen you can open.

Can we draft a letter we have no template for?POST /api/ai/draft-letter
Is AI on in this deployment?GET /api/ai/status
What did the model invent?Nothing it was told not to: missing facts come back as [placeholders]
Can it summarise Arjun’s profile?POST /api/ai/resume-summary/{id}
Outcomes

What teams do with it

A faster first draft

A new kind of letter starts from a structured draft instead of a blank page.

Facts from the system, not the model

Merge fields carry the names, dates and pay; the model writes the words around them.

A person decides

Drafts become templates only after review.

Where people stay in charge. A person asks for every draft and reviews it in the template editor; counsel approves the copy before it is used, as with any template. Drafting uses the model provider you configure, and with none configured every other feature works the same.

Try drafting on your own letters

We will turn on drafting in a workspace of your own with your chosen model provider.

Request a demo