Comment rédiger une bonne invite

Co-Pilot pour les créateurs d'automatisations vous permet d'explorer différentes variantes d'une invite afin de déterminer ce qui vous convient le mieux. Si les premiers résultats ne répondent pas à vos besoins, vous pouvez annuler ou supprimer l'automatisation, reformuler votre invite et l'exécuter à nouveau.

Suivez ces principes pour obtenir des résultats meilleurs et plus pertinents à partir de Automation Co-Pilot.

Rédigez des instructions non ambiguës

Automation Co-Pilot vise à comprendre votre intention à partir de l'instruction (ou de l'invite) que vous envoyez. Des instructions claires et précises permettent de réduire les conjectures et d'obtenir de meilleurs résultats.

Lorsqu'il est indiqué avec Send Email dans le Éditeur de robots, Automation Co-Pilot utilise le package de commande par e-mail pour exécuter cette invite. Si votre intention était d'envoyer un e-maill avec Microsoft 365 Outlook, alors l'invite correcte serait l'action Send Outlook email.

Soyez direct

Donnez des instructions directes et abstenez-vous de demander ou de « penser à haute voix ».

Au lieu de dire can you please help me to create an automation to send email, reformulez votre invite en disant create an automation to send email to demo@demo.com with subject 'this is a demo'.

Décomposez les actions complexes

Si le scénario d'automatisation comporte plusieurs étapes, décomposez-les en tâches plus petites et plus faciles à gérer.

Au lieu de dire Insert salesforce records into database and check record for email info to send email, reformulez votre invite en disant Get records from Salesforce. For each record, insert it into the database. If the record contains an email address, send an email to demo@demo.com. If not, add a comment. If an error occurs when the bot performs these operations then show a message box.

Ajoutez un contexte supplémentaire lorsque c'est possible

Le fait de spécifier le type de tâche ou d'action dans votre invite permet d'identifier avec précision l'étape d'automatisation.

L'utilisation d'une invite pour dire Open excel C:/temp/MyFile.xlsx garantirait que Automation Co-Pilot utilise l'action Excel pour ouvrir le fichier spécifié.

Exemples d'invites

Il s'agit d'exemples d'invites pour des modèles courants observés dans les automatisations construites par les développeurs. Bien que ces modèles d'invite produisent des résultats optimaux, nous vous recommandons de les modifier en fonction des besoins de l'automatisation que vous créez.

Exemples Éditeur de robots :
  • Open a folder. Loop through each file. Copy the file names and add it in a excel file
  • connect to database using myname/mytoken account
  • 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
  • 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
  • Sharepoint Operations :
    • 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 / ElseIf / 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$
  • Error Handler :
    • open excel C:\temp.xlsx. When error occurs, send an email
    • open excel C:\temp.xlsx. When error occurs, send an email to me@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
  • 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.

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