Skip to content
Denne side findes på dansk. Læs på dansk
HeyMySocial

decide_recommendation

Record the person's decision on a recommendation

writes found with search_tools

Record what the person decided about one recommendation from list_recommendations: `approve`; `edit_and_approve` with their own title, hypothesis and decision rule (no promise of a result); `reject` with their reason; `rate` its usefulness 1 to 5; or `mark_done` once an approved one was carried out. `rating` may accompany any decision.

Needs a role that may approve (a budget recommendation also needs the budget right) and person_confirmed: true after the person saw the recommendation with its evidence tier and uncertainties (get_recommendation); without it nothing changes and the reply shows what to show. Approving executes nothing: no post, message, budget change or experiment starts. The reply says so and returns `next_action`, the step the person may take. Never decide for the person.

Arguments

NameTypeNeededWhat it is
id string yes The recommendation id from list_recommendations.
decision string yes approve, edit_and_approve, reject, rate or mark_done.One of: approve, edit_and_approve, reject, rate, mark_done
title string no edit_and_approve: the person's title, up to 250 characters. Default: unchanged.
hypothesis string no edit_and_approve: the person's wording of the hypothesis, up to 4000 characters. Default: unchanged.
decision_rule string no edit_and_approve: how the outcome will be judged, up to 2000 characters. Default: unchanged.
reason string no reject: why, in the person's words. Kept for judging the rule.
rating integer no How useful the person found it, 1 (not) to 5 (very). Required for rate, optional otherwise.
person_confirmed boolean no Set true only after the person has seen exactly this recommendation with its evidence tier and uncertainties, and the decision you are about to record and told you, in this conversation, to go ahead. Never set it on your own initiative.

Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.

How it behaves

  • It changes something in the workspace, within what the signed-in person's role allows.
  • It is not in the first list an assistant sees; the assistant finds it with search_tools and runs it with execute_tools.

How tools behave: confirmation, review links, errors and limits

compose_drafts · get_recommendation · list_recommendations · refresh_recommendations · social_guide