Use case: Portfolio Advisory Workflow

Learn about an example Portfolio Advisory Workflow. You act as a portfolio management and optimization manager who assigns tasks to colleagues. You must format the arguments for "task," "context," and "coworker" as strings. The goal is to delegate the user request and report the run details to the user.

  1. Click the Create button in the Agentic Workflows window. The Create New Workflows page displays.
  2. Enter a Workflow Name and click the Create Workflow button. The draft workflow is created, and the Edit Workflow page displays.
  3. Select the Is Conversational, Smart Workflow, Manager Agent, and Planning toggles as required.
  4. Click the Create or Edit Agents button. The Create or Edit Agents page displays.
    1. Manually enter the necessary details or use the Cloudera Generate with AI feature. If using the Generate with AI feature, in the input box, describe the Agent function, then click the Apply the Suggestions option.
    2. Select the Artifacts Files toggle and add the recommended tools.
    3. Optional: Add an MCP server to the Agent by clicking the Add MCP Server button, if required.
    4. Click the Create Agent button
    5. The Workflow chart displays.
  5. You can further edit your tools by clicking the Edit button on the tool.
    1. You can test your tool by entering the tool parameters in the Playground tab.
    2. Make your changes and click the Save tool button.
  6. Once all the agents are created, click the Save & Next button on the Add Agents tab.
  7. On the Add Tasks tab, the tasks are already listed, as this is a conversational workflow. Click the Save & Next button to proceed to the next step in the workflow configuration.
  8. On the Configure tab, set the following parameters:
    1. Set the Max New Tokens parameter to 4096. This value represents the maximum number of new tokens the agents and the manager agent can generate during LLM calls.
    2. Set the Temperature parameter to 0.1. The temperature controls the variability or creativity in the agent responses generated by the LLM. A higher temperature value results in more diverse and creative responses. A lower temperature value results in less varied and more deterministic responses.
    3. Enter your user key in the user_key_1 field of the Sample Tools parameter.
    4. Enter your Serper API key in the serper_api_key field of the Web Search Tool parameter.
    5. Click the Save and Next button.
  9. On the Tests tab, perform the following actions:
    1. Add your Workflow Overview, Key Features, Sample Prompts, Expected Outputs, and Usage Tips in the Capability Guide.
    2. Upload different artifacts while testing the conversational workflow and then the workflow uses these artifacts as input. All the artifacts that are either uploaded or generated are stored in the artifact directory on the right side panel.
    3. Enter your prompt and click the Run button to execute the workflow. Because the Smart Workflow feature is enabled, an execution plan is created, and the tasks are further split into sub-tasks and assigned to an Agent.
    4. The tasks are executed one after the other. The results are displayed.
    5. Once the test is complete, click the Save & Next button to proceed to the deployment stage.
  10. On the Deploy tab, you can perform the following actions:
    1. Click the Deploy button to initiate the deployment of the workflow. The deployment process typically takes about five to seven minutes to complete.
    2. Go to the Agentic Workflow homepage to view the deployed workflow
    3. Click the Save Template button to create a reusable template of the workflow. This template can serve as a reference for future use.
    4. (Optional) Click the Test button to return to the previous page and retest the workflow.