在使用 Co-Pilot for Automators 添加和更新现有自动化场景时,请在输入提示之前选择一个项目,以定位更改的位置。

示例摘要

以下示例将演示如何使用提示来构建和编辑通过使用表格中的详细信息填充电子邮件地址、主题和抄送栏向 Excel 电子表格中列出的每个联系人发送电子邮件的自动化流程。

Izzi,一位 IT 主管,需要创建一个自动化向每位员工发送电子邮件。

过程

  1. 机器人编辑器 中,输入以下提示以创建自动化的结构:
    Open an excel file c:\temp\email_list.xlsx and loop each row in the excel worksheet sheet1. Read the value of cell A1 for the row and save to Output Variable $Email_Sender$. Read the specific cell B1 of the row to Output Variable $Email_Subject$. Read the specific cell C1 of the row to Output Variable $Email_Cc$. Send an email using outlook then set the Sender to $Email_Sender$, set the To to $Email_Subject$, and set the Cc to $Email_Cc$.
    您的自动化结构已在画布上生成,并包含必要的操作。
  2. 选择“读取 A1”操作,以指定新项目添加在场景中的位置。
    Co-Pilot 页面的帮助文本将显示您选择的项目数量。
  3. 请输入要添加内容的提示:
    If no value exists, then display a message.
  4. 选择要更新属性的项目。 (可选)您可以选择多个项目,以更新所有属性。
  5. 输入要更新属性的提示(文件夹中的文件)。
  6. 查看并保存您的 机器人