[Live Now] Ask Katalon Anything Episode 11 | AI in Testing & the Future-Ready Tester

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.

  1. Create a POST Request Object in Object repository in Katalon.
  2. Set endpoint: https://api.openai.com/v1/responses or any …
  3. Add Authorization header: Authorization: Bearer YOUR_API_KEY
  4. Build the JSON request body.
  5. Send the request using:
    1. WS.sendRequest()
      
    2. Parse the AI response and use it in your test execution.