優れたプロンプトの作成方法

Co-Pilot for Automators を使用すると、プロンプトのさまざまなバリエーションを試せるため、自分に最適なものを判断できます。最初の結果がニーズに合わない場合は、オートメーションを元に戻すか削除し、プロンプトのフレーズを変更して再度実行できます。

Automation Co-Pilot からより適切な優れた結果を得るには、以下の原則に従ってください。

明確な指示を記述する

Automation Co-Pilot は、ユーザーが送信した指示 (またはプロンプト) からその意図を理解することを目的としています。明確で具体的な指示を出すと、当て推量が減り、より良い結果となります。

Bot エディターにおいて Send Email で指示された場合、Automation Co-PilotE メール コマンド パッケージを使用してこのプロンプトを実行します。Microsoft 365 Outlook で E メールを送信することが目的だった場合、正しいプロンプトは 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.