Co-Pilot for Automators (Co-Pilot) crée des résultats optimaux lorsqu\'on saisit les exemples d\'invites suivants pour les tendances courantes observées dans le développement de l\'automatisation.

Envisagez de copier les invites de la liste suivante et de modifier les détails individuels pour adapter le résultat à vos propres besoins d\'automatisation.

Exemples de rédaction d\'invite dans le Bot editor

Exemples :
  • 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.
    Remarque : Assurez-vous d\'avoir correctement configuré et enregistré cette connexion dans les connexions de la 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.
  • Cet exemple exécute une automatisation qui analyse les enregistrements dans Salesforce et, pour chaque enregistrement Salesforce, ajoute les données dans la base de données existante. Lorsque l\'enregistrement contient un e-mail, l\'automatisation envoie un e-mail, et lorsque l\'enregistrement n\'a pas d\'e-mail, l\'automatisation ajoute un commentaire. De plus, si une erreur se produit pendant l\'exécution, l\'automatisation affiche un message.

    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.

Plusieurs opérations séparées pour plus de clarté.: Cet exemple présente un scénario complexe où différentes actions sont détaillées pour illustrer la coordination des données. Les nombres ordonnés aident à spécifier la séquence et instruisent Co-Pilot pour qu\'il ordonne ces actions lors du rendu.

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.
Opérations d\'email :
  • cet exemple recherche les e-mails qui correspondent aux conditions spécifiées et déplace les e-mails vers le dossier spécifié existant.

    Move all emails to 'Finance' folder if attachments have any PDF file and the sender is 'finance@aai.com'.
  • Cet exemple génère une automatisation qui utilise le package de messagerie pour se connecter et enregistrer les e-mails envoyés spécifiquement par des contacts Salesforce établis. L\'invite spécifie d\'utiliser le package email, plutôt que le package Outlook, et repose sur le fait que la liste Salesforce existe déjà dans le compte de messagerie de cet utilisateur.

    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.
  • Cet exemple trouve les e-mails qui correspondent aux conditions spécifiées, enregistre les e-mails à l\'emplacement spécifié, puis supprime les e-mails du dossier de messagerie.

    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.
Opérations 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.
Conditions Si / Sinon Si / Sinon:
  • 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$.
Opérations 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.
  • Cet exemple génère une automatisation qui crée un nouveau fichier csv avec tous les résultats correspondants des deux Fichiers csv spécifiés, basés sur les valeurs de la colonne cible.

    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'.
  • Cet exemple exécute une automatisation qui enregistre les pièces jointes Excel dans le dossier spécifié, envoyées par le fournisseur spécifié.

    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.
  • Cet exemple crée un nouveau fichier CSV avec toutes les valeurs d\'un fichier Excel et d\'un fichier CSV, basé sur la colonne cible.

    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.
  • Cet exemple exécute une automatisation qui lance une macro pour chaque ligne répondant aux conditions spécifiées, et pour les lignes qui ne répondent pas aux conditions, copie ces données dans un autre fichier Excel spécifié.

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

Exemples de rédaction d\'invite dans le Process Composer

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