state and the judgment you want in each question’s instructions. A text-only request omits assets.
state accepts a string, a JSON object, or a JSON array. Objects and arrays are serialized as text and read as one shared state, not as a batch of separate requests.
Label related material with an object
A string is enough for a single message. Use an object when the decision depends on several pieces, such as a customer message and the policy it is checked against:data.answers under the same names. Question types covers each answer’s shape.
Write a state the model can judge
- Include the content, not a link. URLs in
stateare read as text; paste the document, page, or transcript you want evaluated. - Name the parts. Keys such as
message,policy, andhistorytell the model what each piece is. - Keep one decision per request. Questions in a request share the same state and run independently. When a question depends on an earlier answer, ask it in a later request.
- Watch the context budget.
heygen-decision-1reads up to 128k tokens per model read, andheygen-decision-1-turbo(preview) up to 256k. See Context limits.
state.
