strategy
strategy

Preview Prompt

Preview a prompt with test data.

Renders the prompt with sample variables and optionally calls the LLM to generate a response preview.

post/api/strategy/preview

Request

  • Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.dialogbrain.com/api/strategy/preview
  • Auth: none declared

Request body

statestring required

Contact state to preview

modestring required

Mode: 'reply' or 'outbound'

dummy_messagestring nullable

Test message for preview

prompts_overrideobject nullable

Override prompts without saving

Response

Successful Response

rendered_promptstring required
model_responsestring required
tokens_usedinteger nullable

Changes

No recorded changes to this operation across all 5 revisions of this API.