Reference

willo_document_write

Create a business document (no id: title, doc_type, content) — runs without a card — or change one (id from willo_documents with old_text → new_text…

  • Act
  • May need approval
  • Secret scan
Generated from Willo's codeOpen in ClaudeOpen in ChatGPT
On this page

Write a business document. Create a business document (no id: title, doc_type, content) — runs without a card — or change one (id from willo_documents with old_text → new_text, and/or a new title / doc_type), which needs a person's approval (pending_approval + link). Documents are Willo's records, not the site.

Access

  • Token: read + act, and editor access or higher on the business.
  • Approval: Only when Willo's chat would stop for the same action. The description says when; otherwise the call runs at once.
  • Secret scan: refused if the new content holds a value shaped like an API key or token.

Parameters

ParameterTypeRequiredDescription
idinteger ≥ 1noThe document to change. Omit to create.
titlestringnoTitle (required to create).
doc_typestring (mission or strategy or brand_guide or report or analysis or proposal or other)noKind of document (required to create).
contentstringnoCreate only: the full text.
replacebooleannoCreate only: replace an existing document with the same title.
old_textstringnoChange only: exact text to replace.
new_textstringnoChange only: the replacement.
summarystringnoChange only: one plain sentence for the owner, shown on the card.