Cómo redactar una buena indicación

Co-Pilot para automatizadores le permite explorar diferentes variaciones de una indicación para que pueda determinar qué funciona mejor para usted. Si los resultados iniciales no satisfacen sus necesidades, puede deshacer o eliminar la automatización, reformular la indicación y ejecutarla nuevamente.

Siga estos principios para obtener resultados mejores y más relevantes de Automation Co-Pilot.

Redacte instrucciones sin ambigüedades

Automation Co-Pilot tiene como objetivo comprender su intención a partir de la instrucción (o indicación) que envía. Proporcionar instrucciones claras y específicas reduce las conjeturas y produce mejores resultados.

Cuando se indica Send Email en el Editor de bots, Automation Co-Pilot utiliza el paquete de comandos de correo electrónico para ejecutar esta indicación. Si su intención era enviar un correo electrónico con Microsoft 365 Outlook, la indicación correcta sería la acción Send Outlook email.

Sea directo

Proporcione instrucciones directas y evite hacer solicitudes o "pensar en voz alta".

En lugar de decir can you please help me to create an automation to send email, reformule su indicación de manera que diga create an automation to send email to demo@demo.com with subject 'this is a demo'.

Desglose las acciones complejas

Si el escenario de automatización implica varios pasos, divídalos en tareas más pequeñas y manejables.

En lugar de decir Insert salesforce records into database and check record for email info to send email, reformule su indicación de manera que diga 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.

Agregue contexto adicional cuando sea posible

La especificación del tipo de tarea o acción en su indicación permitirá identificar con precisión el paso de automatización.

Si usa una indicación que dice Open excel C:/temp/MyFile.xlsx, se asegurará de que Automation Co-Pilot utilice la acción de Excel para abrir el archivo especificado.

Ejemplos de indicaciones

Estos son ejemplos de indicaciones de patrones comunes observados en automatizaciones creadas por desarrolladores. Aunque estos patrones de indicaciones crean resultados óptimos, recomendamos modificarlos según sea necesario para la automatización que está creando.

Ejemplos de Editor de bots:
  • 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.

Ejemplos de 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.