Co-Pilot for Automators (Co-Pilot) は、オートメーション開発で観察される一般的な傾向に関する以下の例のプロンプトを入力する際に最適な出力を生成します。

次のリストからプロンプトをコピーし、個々の詳細を変更して自分の自動化ニーズに合わせた出力を調整することを検討してください。

Bot エディター でのプロンプト例

:
  • Open a folder. Loop through each file. Copy the file names and add it in an excel file.
  • Connect to database using myname/mytoken account.
  • Connect to Salesforce using the ConnectionName Control Room OAuth connection.
    注: この接続が Control Room 接続に正常に設定され、保存されていることを確認してください。
  • 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.
  • この例は、Salesforceのレコードを分析し、各Salesforceレコードのデータを既存のデータベースに追加する自動化をレンダリングします。 レコードにメールが含まれている場合、オートメーションはメールを送信し、レコードにメールがない場合はオートメーションがコメントを追加します。 また、実行時にエラーが発生した場合、オートメーションはメッセージを表示します。

    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.

明確さのために区切られた複数の操作: この例は、異なるアクションが詳細に示されている複雑なシナリオを表示し、データの調整を表現します。 注文された番号は、シーケンスを指定し、Co-Pilotにこれらのアクションをレンダリング時に順番に実行するよう指示するのに役立ちます。

Add try catch action. 1. Add SAP connect action with connectivity type as SAP SSO. 2. Send enter as SAP vertual key. 3. Add Delay of 3 ms. 4. Enter the delivery number 858484 by adding the SAP set text action. Field path is wou/tur. 5. Send F7 as SAP virtual key. 6. If window does not exist, update the 'status' column in the excel workbook as 'Invalid' by using Set cell action, else store the Invoice number to the variable using SAP get text action for from field path xyz/abc.
メール操作
  • この例は、指定された条件に一致するメールを見つけ、メールを既存の指定されたフォルダーに移動します。

    Move all emails to 'Finance' folder if attachments have any PDF file and the sender is 'finance@aai.com'.
  • この例は、メールパッケージを使用して、特に確立された Salesforce の連絡先によって送信されたメールを接続し保存する自動化をレンダリングします。 プロンプトは、Outlook パッケージではなく、メールパッケージを使用するように指定しており、このユーザーのメールアカウントに既に存在する Salesforce リストに依存しています。

    Connect to Outlook with email package, save any email to 'c:\temp\MyEmails' if the sender matches the email of any contact in the Salesforce list.
  • この例は、指定された条件に一致するメールを見つけ、指定されたパスにメールを保存し、その後メールフォルダーからメールを削除します。

    Backup all emails from HR folder to c:\temp\ExternalEmails if the domain of the sender is 'chad@automationanywhere.com', then delete from the folder.
Sharepoint の操作:
  • 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 / Else If / 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$.
Excel の操作
  • 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.
  • この例では、指定された2つの csv ファイルからターゲット列の値に基づいて一致するすべての結果を含む新しい csv ファイルを作成する自動化をレンダリングします。

    Combine two csv 'a.csv' and 'b.csv' from the folder at c:\temp by using the column AccountNo. Save only the matching result to 'c.csv'.
  • この例は、指定されたベンダーから送信された Excel 添付ファイルを指定されたフォルダーに保存する自動化をレンダリングします。

    Read emails from the vendor 'jsmith@aa.com' and save attachments of their emails to the folder c:\temp. Only include the files with .xlsx extension.
  • この例では、ターゲット列に基づいて、Excel ファイルと csv ファイルからすべての値を含む新しい csv ファイルを作成します。

    Combine the excel file 'a.xslx' and the csv 'b.csv' file from the folder at c:\temp by using the column AccountNo. Save all matched and unmatched results to 'c.csv'.
  • Copy the data from the excel file 'a.xlsx' into the excel file 'b.xlsx' for all the worksheets that have matching sheet name.
  • この例は、指定された条件を満たす各行に対してマクロを実行する自動化をレンダリングし、条件を満たさない行のデータを別の指定された Excel ファイルにコピーします。

    Run macro 'UpdateVendorData' if B2 is 'Pending' in c:\VenderData.xlsx 'Info' tab. Otherwise copy all the data to c:\TodaysVendorData.xlsx.
エラー処理:
  • Open excel C:\temp.xlsx. When error occurs, send an email tome@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.

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.