WEM snippet 2:
Get to know how we can integrate WEM with ChatGPT. This integration is without using the Wrapper. The steps involve:
1. Opening the ChatGPT site and creating an account.
2. Clicking on Personal and going to the View API Keys.
3. Creating an API key and copying to the clipboard.
4. Creating a Flowchart, a Request & Response field to capture the API.
5. Dragging the interaction node to the flow, creating a search form and submit button.
6. Dragging the Export Node to construct the JSON body for the request.
7. Dragging the HTTP node to do the API call to Chat GPT, passing the request, and capturing the response.
8. Dragging the import node to store the response text and displaying on the screen.