Deterministic Outputs with OpenAI
Snippet
Artificial Intelligence
Universal
Beginner
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 SnippetCopy
Copy
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:
response_format
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 ActionCopy
Copy