- 基本情報
- ベスト プラクティス
- データ プライバシー
- Autopilot のチャット
- オートメーションを生成する
- テストを生成する
- Autopilot for Everyone
Autopilot ガイド
このガイドは、Autopilot による正確なワークフローの作成に向けて、効果的なプロンプトを記述し、必要なリソースを準備するために役立ちます。
For generic instructions, refer to Writing effective prompts.
明確な個別の指示を入力する
小さく明確なアクションにタスクを分割します。Autopilot は、簡潔なステップに分けてプロンプトが入力された場合に、正確なシーケンスを生成します。
プロンプトの例
- 「ACME にログインし、ファイルをダウンロードして、メールで送信してください。」
- For an If-Else activity: "If username and password are empty, log message "Not able to extract credentials from asset". Else log message "credentials details are extracted correctly"."
UI Automation 用のオブジェクト リポジトリを準備する
- 最初に、オブジェクト リポジトリで UI 要素を定義します。定義しない場合、UI 操作の自動化が失敗する可能性があります。
- 要素の名前とコンテキストを正確に定義して、Autopilot が要素を意味的に一致させることができるようにします。
Orchestrator アセットを事前に作成する
アセットとは、Orchestrator 内の共有の変数や資格情報リソースのことです。オートメーションでアセットを使用する前に、Orchestrator フォルダーにアセットがすでに存在していることを確認してください。Autopilot ではアセットを動的に作成できないためです。
プロンプトの例
- 曖昧な表現:「資格情報を使用してログインしてください。」
- 改善された表現:「ACME 資格情報アセットから値を取得してください。」
- 最適な表現:「Orchestrator の Test フォルダーにある ACME_credential アセットから値を取得してください。」
Orchestrator のキューを事前に作成する
キューとは、キュー アイテムを無制限に保持できるコンテナーです。オートメーションでキューを使用する前に、Orchestrator フォルダーにキューが存在することを確認してください。Autopilot ではキューを動的に作成できないためです。
プロンプトの例
- 曖昧な表現:「キューを使用してデータを挿入してください。」
- 改善された表現:「トランザクションをキュー ACMELoan に挿入してください。」
- 最適な表現:「Orchestrator の Test フォルダーにあるキュー ACMELoan にトランザクションを挿入してください。」
アクティビティを明示的に指定する
使用するアクティビティを明確に示します。Autopilot では、現在のワークフローで以前使用していたアクティビティが優先されます。
プロンプトの例
- 明示的な表現:「メールの送信には、Outlook ではなく UI Automation を使用してください。」
Autopilot のコンテキストの制限を理解する
Autopilot は、現在のファイル内の以下のリソースのみを認識します。
- 現在のファイルで定義されている変数
- 現在のワークフローで以前使用していたアクティビティ
- Data Manager から利用可能なアセットとパッケージ
Autopilot は以下にアクセスできません。
- 現在のファイル以外のワークフロー ファイル
- グローバル変数
- プロジェクト全体の構成
効果的なプロンプトの例
- Website login: "Create a web automation workflow that navigates to https://acme-test.uipath.com/login and types in Username and Password."
重要:
Objects in the Object Repository must exist prior to prompting Autopilot.
- Website login using Orchestrator assets: "Get values from the ACME_credential asset, which is in the Test folder in Orchestrator. Log in to https://acme-test.uipath.com using the retrieved username and password, then click log in."
重要:
Assets must exist in Orchestrator prior to prompting Autopilot.
- Extract emails and create report: "Extract the latest 100 emails from Outlook from the current month. Create an Excel file with sender and subject details."
- Email-to-Word PDF summary: "Get all my emails with the subject Feature Request. If any email has attachments of type PDF, download the file, summarize it, create a new word file in the current folder, and append the summarization."
- Convert log file to Word document: "Read text file at 'C:\Users\USERNAME\Desktop\Robot.log', write contents into a Word file, and save it as 'AutoPilotDoc.docx' at 'C:\Users\USERNAME\Desktop'."
重要:
Make sure the file paths exist and are accessible.
- Read an email from Outlook using UiPath.Mail.Activities: "Read an email from outlook using UiPath.Mail.Activities."
- Call OData Users API and log the response: "Call OData/Users Orchestrator APIs and display the response as a log message."
- Academic grading: "Read an Excel file with candidate's names, marks, and email addresses. If the score is more than 45, send an email using Outlook to the candidate saying they passed. Otherwise, send an email saying they failed."