Lightning Web Component connected to Open AI (Chat GPT) to generate Blog Posts.
Author: Gian Vallejos
Application developed with Lightning Web Components to generate Blog Posts. We can set the "Subject" and the desired "Number of Words" of the post.
Also, we can save those post ideas in our Post__c Object.
- Go to https://platform.openai.com/
- Register for free
- Click on your profile picture / View API keys
- Set any name
- Copy the key and paste it in Setup / Custom Labels / OpenAI_API_KEY
- Save it
- Right click on force-app/main/default/labels/CustomLabels.labels-meta.xml
- Select SFDX: Deploy source to org
- Right click on force-app/main/default/objects
- Select SFDX: Deploy source to org
- Right click on force-app/main/default/messageChannels
- Select SFDX: Deploy source to org
- Right click on force-app/main/default/classes
- Select SFDX: Deploy source to org
- Right click on force-app/main/default/lwc
- Select SFDX: Deploy source to org
- Go to the Setup gear.
- Search for "Remote Site Settings"
- Add the API: https://api.openai.com
Add Lightning Web Components to your App Page
If there is any problem. Please contact me on: