1.
Click the CometAPI Text Generator
node on the canvas to open the Node Editor on the right.
2.
Switch to the Settings tab.
3.
Find the Key-based Integration section and click the dropdown menu.
4.
Search for or select CometAPI
from the list.
5.
Click the blue Save button in the top-right corner of the editor. This step is crucial as it correctly links the node with CometAPI's key management system.
1.
In the Node Editor, switch back to the Inputs tab (or you can operate directly on the node on the canvas).
2.
Click the key icon 🔑 area in the top-right of the node to open the key management dropdown.
3.
In the menu, select "+ Bring your own Key".
4.
A dialog box designed specifically for the CometAPI integration will pop up.
5.
In the Key ID field, enter an easily recognizable name, for example, cometapi-key-1
.
6.
In the Value field, paste the sk-xxxxx
key you obtained from CometAPI.
1.
Below the CometAPI Text Generator
node, click "+ Add a new step".
2.
Select the "Return Response" node.
3.
In the Body
field, click the </>
icon and select the response
variable from the CometAPI Text Generator
node.