Advertisement
Guest User

Untitled

a guest
Feb 7th, 2023
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. The prompt:
  2.  
  3. Below I am going to issue a command in natural language for a set of salesforce operations.
  4.  
  5. Your response will be a json object that can be parsed by NodeJS JSON.parse of the format:
  6.  
  7. {
  8. "Account": AccObject,
  9. "Opportunity": OppObject,
  10. "DefaultsUsed": []
  11. }
  12.  
  13. 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.
  14. For AccObject, please specify the create payload for creating an account in the schema that salesforce uses.
  15. 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".
  16. Default Opportunity Values: {
  17. Name: "<Account Name> Opp",
  18. Amount: 1000,
  19. CloseDate: "next wednesday",
  20. StageName: "In Progress",
  21. Probability: 50,
  22. }
  23.  
  24. Do not respond with ANY natural language except the json object i mentioned.
  25. ---- (User plaintext input)
  26. create new opportunity for snapchat account facebook stage closed won close date 2/2/2023
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement