https://github.com/charlesw-salesforce/code-live-models-api
This is a companion repository to my August 15, 2024 codeLive on the Models API. It demonstrates how to use the Salesforce Models API to build a custom chatbot with Apex and Lightning Web Components.
https://github.com/charlesw-salesforce/code-live-models-api
salesforce salesforce-developers
Last synced: 3 months ago
JSON representation
This is a companion repository to my August 15, 2024 codeLive on the Models API. It demonstrates how to use the Salesforce Models API to build a custom chatbot with Apex and Lightning Web Components.
- Host: GitHub
- URL: https://github.com/charlesw-salesforce/code-live-models-api
- Owner: charlesw-salesforce
- Created: 2024-08-15T00:05:39.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T03:51:59.000Z (11 months ago)
- Last Synced: 2025-01-22T09:18:38.069Z (5 months ago)
- Topics: salesforce, salesforce-developers
- Language: JavaScript
- Homepage:
- Size: 14.3 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Exploring the Models API
This is a companion repository to the ["codeLive: Exploring the Models API (Beta)" livestream](https://www.youtube.com/watch?v=hf95_ghGeNI), which aired on August 15, 2024. It shows how to build and deploy a chatbot that supports multiple models, including OpenAI GPT-4o and Anthropic's Claude Haiku.

## Using this repository
1. Create a Custom Einstein AI Playground using the link in the [Get Started with Prompt Builder](https://trailhead.salesforce.com/content/learn/projects/quick-start-prompt-builder/get-started-with-prompt-builder) Trailhead module.
2. Turn on [Einstein Generative AI](https://help.salesforce.com/s/articleView?id=sf.generative_ai_enable.htm&type=5).
3. Clone and pull down this repository.
4. Authorize your newly created Einstein AI Playground.
5. [Deploy the Apex Classes and chatUtility component](https://developer.salesforce.com/docs/platform/sfvscode-extensions/guide/deploy-source.html) to the org.
6. Edit the Sales app in the [App Manager](https://help.salesforce.com/s/articleView?id=sf.apps_lightning_utilities.htm&type=5).
7. Within the Sales app App Manager, add the chatUtility component as a Utility Item.## Resources
- [Models API Developer Guide](https://developer.salesforce.com/docs/einstein/genai/guide/models-api.html)
- [Access Models API with REST](https://developer.salesforce.com/docs/einstein/genai/guide/access-models-api-with-rest.html)
- [Access Models API with Apex](https://developer.salesforce.com/docs/einstein/genai/guide/access-models-api-with-apex.html)
- [Models API Postman Collection](https://www.postman.com/salesforce-developers/salesforce-developers/collection/onih7sc/models-apis-beta)
- [Activate Einstein Generative AI](https://help.salesforce.com/s/articleView?id=sf.generative_ai_enable.htm&type=5)