|
1 | 1 | = Workflows and Rules |
2 | 2 |
|
3 | | -Rules and Workflows allow developers to customize how MuleSoft Dev Agent operates within their project. |
| 3 | +Rules and Workflows allow developers to customize how Mulesoft Vibes operates within their project. |
4 | 4 |
|
5 | | -== Add Workflows and Rules |
6 | | - |
7 | | -Rules Define natural-language constraints or guidelines for how Dev Agent should generate content. |
| 5 | +Rules Define natural-language constraints or guidelines for how Mulesoft Vibes should generate content. |
8 | 6 |
|
9 | 7 | You can use rules to enforce naming conventions, ensure consistent error handling, or maintain coding standards across your workspace. |
10 | 8 | Rules can be defined at two levels: |
11 | 9 |
|
12 | | -* *Global* – Applies to all prompts sent to Dev Agent. |
| 10 | +* *Global* – Applies to all prompts sent to Mulesoft Vibes. |
13 | 11 |
|
14 | 12 | * *Workspace* – Applies only to the active workspace. |
15 | 13 |
|
16 | 14 | Workflows create predefined multi-step tasks that Dev Agent executes automatically. |
17 | 15 |
|
18 | | -Workflows let you streamline repeated development steps and can be triggered using slash commands (for example, `/workflow-name`) in the Dev Agent panel. |
| 16 | +Workflows let you streamline repeated development steps and can be triggered using slash commands (for example, `/workflow-name`) in the Mulesoft Vibes panel. |
19 | 17 |
|
20 | | -=== Add rules or workflows |
| 18 | +== Add Workflows or Rules |
21 | 19 |
|
22 | | -. Open MuleSoft Dev Agent in the sidebar. |
| 20 | +. Open MuleSoft Mulesoft Vibes in the sidebar. |
23 | 21 | . Select *Settings*. |
24 | 22 | . In the *Rules and Workflows* section, choose whether you want to add a rule or a workflow. |
25 | 23 | . Select *Add Rule* or *Add Workflow*. |
26 | 24 | . Provide the required information: |
27 | | -* For rules, enter the natural-language instruction you want Dev Agent to follow. |
| 25 | +* For rules, enter the natural-language instruction you want Mulesoft Vibes to follow. |
28 | 26 | * For workflows, enter a name, an optional description, and the steps the workflow should run. |
29 | 27 | . Select *Save*. |
30 | 28 |
|
31 | 29 | You can edit or delete existing rules and workflows from the same section. |
32 | 30 |
|
| 31 | +=== Rule examples |
| 32 | + |
| 33 | +You can use rules to guide how Mulesoft Vibes generates or validates content. For example: |
| 34 | + |
| 35 | +* *Naming convention rule*: Instruct Mulesoft Vibes to ensure that all API names follow your organization’s naming standards. |
| 36 | + |
| 37 | +* *Validation rule*: Require that every API specification includes version information before generating related files. |
| 38 | + |
| 39 | +* *Security rule*: Ask Mulesoft Vibes to flag endpoints that expose sensitive data without authentication. |
| 40 | + |
| 41 | +==== Workflow examples |
| 42 | + |
| 43 | +Workflows define a sequence of steps that Mulesoft Vibes executes to complete a task. For example: |
| 44 | + |
| 45 | +* *API design validation workflow*: Validate an API specification, check naming conventions, verify security requirements, and generate a summary of issues. |
| 46 | + |
| 47 | +* *API creation workflow*: Generate an API specification, apply validation rules, suggest improvements, and save the final version to the workspace. |
| 48 | + |
| 49 | +* *Troubleshooting workflow*: Analyze an error, identify the root cause, propose a fix, and update the configuration if needed. |
| 50 | + |
33 | 51 | == Add Commands |
34 | 52 |
|
35 | | -Commands provide quick shortcuts for interacting with MuleSoft Dev Agent. |
| 53 | +Commands provide quick shortcuts for interacting with Mulesoft Vibes. |
36 | 54 | You can invoke any command by typing `/` in the prompt input box. |
37 | 55 |
|
38 | | -Dev Agent includes several built-in commands: |
| 56 | +Mulesoft Vibes includes several built-in commands: |
39 | 57 |
|
40 | 58 | * `/newrule` — Create a new rule based on the current conversation. |
41 | 59 | * `/newchat` — Start a new chat that carries over context from your current task. |
|
0 commit comments