Artisan IMG > OpenAI (openai) (28aad8ce-5765-43fe-8b44-6ac6d98891c9)
Artisan SVG > Object Helpers (object-helpers) (box-3)

Deterministic Outputs with OpenAI

Artificial Intelligence

Snippets are pieces of workflows. You can copy and paste them directly into any Tray workflow.

New to snippets? Watch this video

For more details please see our Snippet Documentation

About this Snippet

AI Infused process requires deterministic outputs. Take advantage of the new parameters in our OpenAI connector to take your automations to the next level and get one step closer to production ready today.

We leverage two new parameters in the chat completions endpoint:

  1. response_format

  2. seed

Don't forget that somewhere in your prompt (System message or user message, you need to include the word "json" - don't worry if you forget, an error message in the logs will remind you)

See it in Action