How to integrate GPT-5 API function calling for automation