Action Descriptions
API Action description is used to generate API success / fail messages after API executes.
How to write good descriptions
Best descriptions complete the prompt "This action will ____"
Good examples
Action Description | Generated message (Success) | Generated message (Failure) |
---|---|---|
✅ Submit an employee referral | I've successfully submitted the employee referral. | I was unable to submit the employee referral. |
✅ Submit a referral in PurpleHire | I've successfully submitted the referral in PurpleHire. | I was unable to submit the referral in PurpleHire. |
✅ Refer an employee for Engineering | I've successfully referred an employee for Engineering. | I was unable to refer the employee for Engineering. |
Bad examples
Action Description | Generated message (Success) | Generated message (Failure) |
---|---|---|
❌ referral submission API | I've successfully submitted the referral API. | I was unable to submit the referral API. |
❌ action to submit a referral | I've successfully submitted the action to submit a referral. | I was unable to complete the action to submit a referral. |
❌ API that submits referral | I've successfully completed the API to submit referral. | I was unable to complete the API to submit referral. |
Describing your action this way best helps our language model understand it & generate the best success / fail messages.