Option 2: Call OpenAI APIs Directly from Katalon
If your goal is to build custom AI-powered automation (test generation, data generation, validation, defect analysis, etc.), you can call OpenAI APIs using Katalon’s built-in Web Service keywords.
- Create a POST Request Object in Object repository in Katalon.
- Set endpoint: https://api.openai.com/v1/responses or any …
- Add Authorization header: Authorization: Bearer YOUR_API_KEY
- Build the JSON request body.
- Send the request using:
-
WS.sendRequest() -
Parse the AI response and use it in your test execution.
-
