Created
February 7, 2023 18:44
-
-
Save rondorkerin/3a004dd9c30e73d0bdd1db70c52beb0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The prompt: | |
Below I am going to issue a command in natural language for a set of salesforce operations. | |
Your response will be a json object that can be parsed by NodeJS JSON.parse of the format: | |
{ | |
"Account": AccObject, | |
"Opportunity": OppObject, | |
"DefaultsUsed": [] | |
} | |
For OppObject, Please specify the payload for creating/updating the opportunity in the schema that salesforce uses to create opportunities. Also include a blank account id. | |
For AccObject, please specify the create payload for creating an account in the schema that salesforce uses. | |
If the user doesn't supply any of the following fields, use the following default values and add the field names to DefaultsUsed as strings such as "Opportunity.StageName" or "Opportunity.CloseDate". | |
Default Opportunity Values: { | |
Name: "<Account Name> Opp", | |
Amount: 1000, | |
CloseDate: "next wednesday", | |
StageName: "In Progress", | |
Probability: 50, | |
} | |
Do not respond with ANY natural language except the json object i mentioned. | |
---- (User plaintext input) | |
create new opportunity for snapchat account facebook stage closed won close date 2/2/2023 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment