Preparation • Log in coze, address: https://www.coze.com/sign?redirect=%2Fhome • Log in to cometapi. Click "ADD API key" in the API keys to get your token key: sk-xxxxx and baseurl: https://api.cometapi.comAPI Configuration • Enter Coze and click "Get Start", create an agent, and in the agent's workflow, add an HTTP request node and connect it to the start and end nodes.• Choose "POST" as the call method, and in the URL field, enter "https://api.cometapi.com/v1/chat/completions". • In the Authentication token input field, paste the "sk-xxxxx" key obtained from CometAPI, then click "Confirm". • Fill in the request body with:
• For the end node's output, select the HTTP request's body, then test and publish. Testing the Call Enter simple test instructions within the workflow, such as asking for the current time. If the call is successful, you will receive a corresponding answer; if it fails, check if the configuration is correct or contact cometapi online customer service.