Have you ever used Generative AI and felt like you didn’t get the results you were looking for? Just like search engines, Generative AI relies heavily on the prompts you submit.
Prompt engineering is quickly becoming an essential aspect of Intelligent Automation development resulting in increased accuracy, time-savings, improved efficiency, scalability, reduction in errors, ease of use, and more.
In the Pathfinder Community Team, we’re constantly exchanging tips and tricks to get the best result possible. Based on our experience, we’ve learned a few things about creating effective prompts:
- Be clear - use simple language and avoid ambiguous terms
- Provide examples - use specific examples that are similar to the desired output
- Use structured data - use tables, lists, and other structured formats to provide input
Our collaboration has inspired this next monthly badge challenge. Let’s gather together as a community and build a repository of intelligent automation-related prompts!
Contribute & earn your badge in one easy step - reply & share:
What is the most effective prompt you have leveraged to date in your automation development?
Here are a few ideas to help inspire you -
Writing regular expressions
Prompt: write a regular expression to extract the first letter from the first word and last two letters from second word in the example John Smith. Expected output: Jth
Response:
^(\w{1})\w*\s+\w*(\w{2})\b
Reading specific text from unstructured data and responding in structured JSON format
Prompt: Get me the key values from this text in json format. Please find attached invoice number INV-2022-007 for the social media marketing services we provided in July. The subtotal for all line items is $9,000, and an early payment discount of 2% has been applied, for a total of $8,820 along with and sales tax of 8.25%.
Response:
{
"invoice_number": "INV-2022-007",
"service": "social media marketing",
"month": "July",
"subtotal": "$9,000",
"discount": "2%",
"discount_amount": "$180",
"tax": "8.25%",
"total": "$9,959.50"
}
Text Generation: Generate Email responses for Customer Support
Prompt: Generate an email in less than 100 words to respond to an unhappy customer Allen to inform him that the issue with his smartphone will be rectified in 96 hours.
Response:
Dear Allen,
Thank you for bringing the issue with your smartphone to our attention. We apologize for any inconvenience caused. Our team is currently working on resolving the issue and we assure you that it will be rectified within the next 96 hours. We appreciate your patience and understanding in this matter. Please feel free to contact us if you have any further concerns or questions.
Best regards,
>Your Name]
Bonus: Share a tip we are missing from our list of learnings.
By participating in this challenge, you have the opportunity to share your expertise, learn from your peers, and be an active influence in this exciting time for the automation industry.
Don’t miss out on all the recent AI buzz at Automation Anywhere -
- Upcoming Community Event (May 1): Generative AI Ask Me Anything w/ Automation Anywhere AI Product Leaders
- Putting Google Vertex AI to Work
- Automation Anywhere ChatGPT Package Update