# Copilot in formula mode

Workato’s Copilot leverages Large Language Models (LLMs) to enhance your experience in formula mode. This AI-powered feature provides assistance based on your formula requirements. You can create complex data transformations or fine-tune your formatting by directly prompting Copilot, which offers tailored suggestions and examples.

# Prerequisites

  • Ensure that you have Copilot enabled for your workspace. Enabling Copilot requires an Admin system role. If you are not assigned this role, contact your workspace administrator to enable this feature. For more information, refer to our Recipe Copilot documentation.

# Get started with Copilot in formula mode

Workato’s Copilot offers various ways to assist you in formula mode, depending on your specific situation in the recipe.

# Direct assistance from Copilot

When starting a new or empty formula field, complete the following steps to get direct help from Copilot:

1

Navigate to any trigger or action step within your recipe that requires data transformation.

2

Click on the Formula tab in the input field to dynamically set values based on your recipe data.

Formula tabNavigate to the Formula tab

3

Select the Ask Copilot to fill field button within the formula box for empty fields to allow Copilot to generate your formula.

Ask Copilot tabAsk Copilot to fill the input field

# Overcome formula creation challenges

If you encounter difficulties while creating a formula, complete the following steps for additional assistance from Copilot:

1

Click on the Formula tab and begin formulating your input.

2

Click Ask Copilot for help if your input results in no function matches, indicated by No functions match your search.

Ask Copilot for helpAsk Copilot for help when no function matches

# Hide Copilot

Click Hide at any point to minimize the Copilot dialog. To restore the Copilot interface, press Shift + Space.

Restore the Copilot interfacePress Shift + Space to restore the Copilot interface

# Quick formula editing with Copilot

When fine-tuning formulas, you can click the white box within any formula field to activate Copilot. This feature ensures Copilot is readily accessible to streamline your formula editing process.

Activate Copilot for field editingClick the white box to activate Copilot for formula assistance

# Generate formula suggestions

After you activate Copilot in formula mode, you can start generating specific formula prompts.

HOW COPILOT INTERPRETS DATA

When generating formulas, Copilot adjusts its approach based on the data present in the formula field:

  • No input or generation: Copilot only takes into account the prompt and the recipe.
  • Input present: Copilot takes into account the existing input, the prompt, and the recipe.
  • Generation present: Copilot takes into account the generation, the prompt, and the recipe.
  • Input and generation present: Copilot only takes into account the generation, the prompt and the recipe.
1

Type your formula requirements or a description of the transformation you require directly into the prompt. Select the Back option if you plan to revise your input or view previous suggestions.

Generate promptGenerate a formula prompt in Copilot

2

Click the green arrow to begin the formula generation process. The system will display Generating input…, indicating that it is processing your input for suggestions. You can also select Stop to cancel the process.

Generate inputGenerate the formula in Copilot

3

Examine the formula suggestion that Copilot generates to ensure that the formula meets your transformation requirements.

4

Insert the suggested formula directly into your formula field or click Copy to clipboard to use it in another part of your recipe.

Insert the generated formulaInsert the generated formula into the input field

5

Use the provided suggestion or refine it to ensure it aligns with your specific data needs and preferred output format.

# Refine existing input or Copilot-generated formulas

If you already have input in the formula field or need to refine a formula generated by Copilot, complete the following steps to tailor the suggestions to your requirements:

1

Activate Copilot by clicking Fill field with AI in the formula box. This step is crucial whether you're starting with a datapill, have existing input, or are refining a formula previously generated by Copilot.

Activate CopilotActivate Copilot for updating the formula prompt

2

Enter your specific requirements in the prompt to customize the formula suggestion.

Provide new promptType the new requirements for the formula

3

Examine the AI-generated formula suggestion to ensure it matches your intended output.

Review the generated formulaReview the updated formula suggestion

4

Select Replace to adjust the formula.

Replace the formulaReplace the formula

# Map step outputs with formula mode

Workato's formula mode allows you to map outputs from one step to another within your recipes:

1

Switch to Formula mode in the input field where you plan to map the output from a previous step.

2

Type your mapping requirements in the prompt to automatically select the corresponding datapills from previous steps.

Type your mapping requirementsType your mapping requirements in Copilot

3

Click Insert to map them to your current step’s field or click Copy to clipboard for use in another part of your recipe.

Insert mappingInsert mapped output into the formula field

4

Edit the formula directly in the formula box or click Ask Copilot for help if you need assistance to refine the mapping.

Edit formula mappingEdit the mapped formula in Copilot

# Remap unknown datapills

If Copilot does not find similar datapills for your formula, complete one of the following options:

  • Delete the unmatched datapill and manually select a replacement from the data tree.
  • Select Ask Copilot for help to get AI-assisted suggestions for remapping the datapills.

Handle unknown datapillsRemap unknown datapills in Copilot

Following these steps ensures that your formula accurately references the correct datapills within your recipes.

# Use formula recommendations

When you insert a datapill in formula mode, Copilot provides recommendations for functions in the input field. If you type a recognized function, such as .where, the footer displays a direct link to that function's detailed explanation in Workato's formula documentation. For additional support, you can click Fill field with AI in the footer to prompt Copilot to generate a relevant formula for your needs.

Link to formula documentationLink to a function in Workato’s formula documentation

# Data usage

For details on the data Copilot uses, refer to our appendix. For more information, refer to our data usage documentation.

# Limitations

Copilot is designed to support a wide range of automation tasks, but there may be complex scenarios that require manual setup. For these cases, refer to Workato's formula documentation.


Last updated: 4/12/2024, 7:05:45 PM