O Co-Pilot for Automators (Co-Pilot) cria resultados ideais ao inserir os seguintes exemplos de prompts para tendências comuns observadas no desenvolvimento de automação.

Considere copiar os prompts da lista a seguir e alterar os detalhes individuais para adaptar a saída às suas próprias necessidades de automação.

Exemplos de solicitação no Bot editor

Exemplos:
  • 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.
    Nota: Verifique se você configurou e salvou com êxito essa conexão nas conexões da 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.
  • Esse exemplo renderiza uma automação que analisa os registros no Salesforce e, para cada registro do Salesforce, adiciona os dados ao banco de dados existente. Quando o registro contém um e-mail, a automação envia um e-mail e, quando o registro não tem e-mail, a automação adiciona um comentário. Além disso, se ocorrer um erro durante o tempo de execução, a automação exibirá uma mensagem.

    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.

Várias operações separadas para clareza: Esse exemplo exibe um cenário complexo em que diferentes ações são detalhadas para expressar a coordenação de dados. Os números ordenados ajudam a especificar a sequência e instruem o Co-Pilot a ordenar essas ações na renderização.

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.
Operações de e-mail:
  • Este exemplo encontra e-mails que correspondem às condições especificadas e move os e-mails para a pasta especificada existente.

    Move all emails to 'Finance' folder if attachments have any PDF file and the sender is 'finance@aai.com'.
  • Este exemplo renderiza uma automação que usa o pacote de e-mail para conectar e salvar e-mails enviados especificamente por contatos estabelecidos do Salesforce. O prompt especifica o uso do pacote de e-mail, em vez do pacote do Outlook, e se baseia na lista do Salesforce já existente na conta de e-mail desse usuário.

    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.
  • Este exemplo localiza e-mails que correspondem às condições especificadas e salva os e-mails no caminho especificado e, em seguida, exclui os e-mails da respectiva pasta.

    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.
Operações do 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.
Condições 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$.
Operações do 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.
  • Este exemplo processa uma automação que cria um novo arquivo csv com todos os resultados correspondentes dos dois arquivos csv especificados, com base nos valores da coluna de destino.

    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'.
  • Este exemplo processa uma automação que salva anexos do Excel na pasta especificada, enviados pelo fornecedor especificado.

    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.
  • Este exemplo cria um novo arquivo csv com todos os valores de um arquivo Excel e de um arquivo csv, com base na coluna de destino.

    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.
  • Este exemplo renderiza uma automação que executa uma macro para cada linha que atende às condições especificadas e, para as linhas que não atendem às condições, copia esses dados em um arquivo Excel diferente especificado.

    Run macro 'UpdateVendorData' if B2 is 'Pending' in c:\VenderData.xlsx 'Info' tab. Otherwise copy all the data to c:\TodaysVendorData.xlsx.
Gerenciador de erros:
  • 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.

Exemplos de solicitação no Process Composer

Exemplos:
  • 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.