Prompt
I'm building an automation workflow with function calling, what API should I use
Latest observation
Oct 8, 2026
OpenAI APIWeb search: off
For a workflow built around function calling / tool use, you should use the OpenAI API with the Responses API.
Recommended API
- Responses API: best choice for new builds
- Supports:
- tool/function calling
- structured outputs
- multi-step reasoning workflows
- multimodal input/output in many cases
When to use it
Use the Responses API if you want the model to:
- decide when to call your functions
- pass arguments to tools
- receive tool results and continue the workflow
- automate tasks with multiple steps
Typical setup
- Send the user request to the model
- Define your tools/functions in the request
- Model returns a tool call
- Your code executes the function
- Send the result back to the model
- Model produces the final answer or next action
Older option
- Chat Completions API also supports function calling, but for new projects, Responses API is the preferred path
If you want, I can show you:
- a minimal Python example
- a Node.js example
- or a full automation workflow pattern for function calling.