좋은 프롬프트를 작성하는 방법

Automator용 Co-Pilot를 사용하면 다양한 버전의 프롬프트를 탐색하여 자신에게 가장 적합한 프롬프트를 결정할 수 있습니다. 초기 결과가 필요에 맞지 않으면 자동화를 실행 취소하거나 삭제하고 프롬프트를 다시 입력한 다음, 다시 실행하면 됩니다.

Automation Co-Pilot에서 더 나은 관련성 높은 결과를 얻으려면 다음 원칙을 따르십시오.

명확한 지침 작성

Automation Co-Pilot은 사용자가 보내는 지시(또는 프롬프트)에서 사용자의 의도를 파악하는 것을 목표로 합니다. 명확하고 구체적인 지침을 제공하면 추측이 줄어들고 더 나은 결과를 얻을 수 있습니다.

Send Email 에서 Bot 편집기로 지시하면 Automation Co-Pilot이메일 명령 패키지를 사용하여 이 프롬프트를 실행합니다. Microsoft 365 Outlook이 포함된 이메일을 보내려는 의도라면 올바른 프롬프트는 Send Outlook email 작업입니다.

직관적으로 전달

직관적으로 지시하고 요청하거나 '큰 소리로 생각하기'를 자제합니다.

can you please help me to create an automation to send email라고 말하는 대신, create an automation to send email to demo@demo.com with subject 'this is a demo'라고 말하도록 프롬프트를 다시 작성합니다.

복잡한 작업 세분화

자동화 시나리오에 여러 단계가 필요한 경우 더 작고 관리하기 쉬운 태스크로 세분화하십시오.

Insert salesforce records into database and check record for email info to send email이라고 말하는 대신 다음과 같이 프롬프트를 다시 작성합니다. Get records from Salesforce. For each record, insert it into the database. If the record contains an email address, send an email to demo@demo.com. If not, add a comment. If an error occurs when the bot performs these operations then show a message box.

가능한 경우 컨텍스트 추가

프롬프트에서 태스크 유형 또는 작업을 지정하면 자동화 단계를 정확하게 식별할 수 있습니다.

Open excel C:/temp/MyFile.xlsx라는 프롬프트를 사용하면 Automation Co-PilotExcel 작업을 사용하여 지정된 파일을 열도록 할 수 있습니다.

프롬프트의 예

다음은 개발자가 구축한 자동화에서 관찰되는 일반적인 패턴에 대한 예시 프롬프트입니다. 이러한 프롬프트 패턴은 최적의 출력을 생성하지만, 구축 중인 자동화에 따라 필요 시 조정하는 것이 좋습니다.

Bot 편집기:
  • Open a folder. Loop through each file. Copy the file names and add it in a excel file
  • connect to database using myname/mytoken account
  • open browser google.com
  • create a bot that sends email to $EmailTo$, CC $EmailCC$, from $EmailFrom$, subject 'Bot Started', message 'The bot has now started'
  • run excel macro "TestMacro" on C:\Temp\MacroFile.xls. Then switch to excel Main worksheet and get all cells
  • Prompt for the user to select the folderpath. Loop through the selected folder including subfolders. If any excel file is found, then check for the worksheet ‘Main’. if available save it as a PDF in the same folder
  • get records from salesforce. for each salesforce record, insert a record into the database. if the record contains an email, send an email. if not, add a comment. if an error occurs when the bot performs these operations show a message box
  • Sharepoint Operations:
    • authenticate sharepoint with Client ID as $ClientID$, Client Secret as $ClientSecret$, Tenant ID as $TenantID$
    • create sharepoint folder COPILOT at /SiteName/Folders/FA
    • upload file to sharepoint
  • * If / ElseIf / Else:
    • If response is A, connect to database and read data. Else, send email to $EmailTo$
    • If response is A, connect to database and read data. Else if response is B, open www.google.com. Else, send email to $EmailTo$
  • Error Handler:
    • open excel C:\temp.xlsx. When error occurs, send an email
    • open excel C:\temp.xlsx. When error occurs, send an email to me@myorg.com
    • open excel C:\temp.xlsx and get all rows. If error occurs when performing these operations, send an email
    • add try-catch
    • add error handler
  • Use Excel Advanced package to load the data from 'SalesData.xlsx' located in the 'C:\Reports' folder. Write this data into XYZ oracle database.
  • Prompt user for two folders. Loop first folder to find excel files and copy them to second folder.
  • Create a bot to copy data from a table in database to excel.

Process Composer:
  • Create a new customer profile in the CRM system. The name, email address, and phone number will be provided by a user via a form.
  • Read the list of automotive parts from a pdf using a document automation task, use a bot to search these parts in a website, and email the collected information
  • Start with a form to enter patient information. Then filter out patients that are 75 years old and older. Finally, add a bot to save the information in an excel spreadsheet.
  • Get data from an invoice. If the name starts with "new", check the price. If the price is above 1000, send an email and If the price is below 500, then go to the first task. Otherwise, save the data to Excel file. If the invoice doesn't start with new, validate the document.
  • Add a form task for EntryForm.
  • Add a bot task for botInput.