Skip to content

Lab 3 — Integrating AI and Automation

AI Assistant Dashboard

In this lab, you will learn how to leverage Cisco AI Assistant for Networking to optimize network management, automate tasks and workflows, interact with your infrastructure using natural language, and much more.

  1. Before you start, open two web browser tabs:

    • Tab #1 (Workflows tab): Navigate to Automation > Workspaces
    • Tab #2 (AI Assistant tab): Click the blue circle icon in the top-right corner of the dashboard.

    AI Assistant icon location

  2. In the AI Assistant tab, try the following prompts to gain insights into your lab organization/network:

    • How is my organization doing?
    • Show me all networks in this org and the online devices in each network.
    • What are the recent config changes in my network?
    • Show me the enabled wireless SSID configurations of the network workflow-campus in a table.
    • How many switch ports are up and running in the Workflow-Campus network? Also, show me the neighbor information if CDP/LLDP is available.

    Reflection:

    • How clear, accurate, and useful were the responses from AI Assistant for your tasks?
    • In what ways, if any, did AI Assistant help improve your efficiency or save time while managing your network?
    • Did AI Assistant provide insights or suggestions that you hadn't considered before?

    Hint

    Keep threads focused and start a new one when the topic shifts. Avoid letting a single thread run too long, since extended conversations often lead to context dilution and noise accumulation. If an AI hallucination occurs or the AI Assistant gets stuck, try launching a new thread.

    Information

    The above prompts are meant to inspire — you can also use the AI Assistant for tasks like quickly retrieving answers from the knowledge base, generating Python code for use in a workflow, or summarizing the support cases, one of its latest features. The possibilities with AI are limitless. Be sure to check the latest updates in AI Assistant for Networking Product Updates.

  3. You can leverage AI Assistant not only for things like operational insights, documentation summaries, troubleshooting recommendations, and support case summaries, but also to execute workflows using natural language. In this lab, you'll import a workflow from GitHub. First, create a Git repository. In the Workflow tab, go to Actions and select Manage Git Repositories.

    Manage Git Repositories

  4. Create a new git repository using the details provided. Save the configurations.

    • Display Name: Workflow-Lab
    • No Account Keys: True
    • Git Protocol: HTTPS
    • REST API Repository:

      api.github.com/repos/Meraki-Product-Enablement/Automation_Workflows_Lab
      
      - Branch: main

    Git repository configuration

  5. Return to the Workspace page, click on Actions, and select Import. Then choose Git.

    Import Workflow

    Import options Git import dialog

  6. Configure the import source as follows, and then click Import.

    • Git Repository: select Workflow-Lab
    • Filename: select lab3
    • Git Version: Select the version at the top of the dropdown list

    Import configuration

    Hint

    If no options appear in the filename dropdown, cancel the current import and try again later.

    Note

    By default, the Import as a new workflow (duplicate) check box is unchecked and the import will overwrite the existing object; this action cannot be undone and any changes to the existing object will be lost. If you want to make a copy (clone) of the workflow, check the check box.

  7. When prompted, click Continue. The imported workflow will also use the default Meraki as the target.

    Importing Workflow - target mapping

  8. After the import is successful, navigate Automation > Variables. Under Global Variables, select LAB_ORG_ID_LAB3 and assign your lab org ID as its value. When prompted, click Modify The Value to confirm the variable update.

    Global Variables

    LAB_ORG_ID_LAB3 variable

    Modify value confirmation

    Important

    Use only the organization ID for the provided lab environment. DO NOT enter any other organization ID. You can find the organization ID in the dashboard footer.

  9. Verify the Global Variables. This lab uses two variables that include 'LAB3' in their names. Ensure the value of LAB_ORG_ID_LAB3 matches the value of LAB_ORG_ID, which represents your lab organization ID.

    Variable verification

  10. The imported lab3 workflow from Github is a modified version of campus_automation from Lab 2. Navigate to Automation > Workspace, then click lab3 in the workflow list.

    lab3 workflow

  11. Review the following change logs by examining the lab3 workflow.

    • Dynamic input: Instead of hard coding the existing and new network names, the workflow now accepts user input through two Workflow input variables: Target_Network_Name and New_Network_Name.

      Dynamic input variables

    • Lab Safe Lock: Added preliminary steps at the start of the flow to check whether the target organization is a lab organization.

      Lab Safe Lock

    • Simplified branching: The condition branch Not found, but another Campus network name has been set to skip.

      Simplified branching

    • Network update: The Meraki – Update Network atomic activity has been moved to the Found branch. Its Input – Name value has been updated to use the input variable instead of a static string.

      Network update

    • Device naming: In both Meraki – Update Device activities, the workflow now uses both device product type and serial number for naming, instead of a static string.

      Device naming

    • Result message: Two Completed activities have been added — one for a failed result if the target network is not found and one for a successful result upon workflow completion.

      Result message - failed

      Result message - success

  12. In the AI Assistant browser tab, launch a new thread and type in the prompt run the workflow lab3.

    Run workflow prompt

  13. Confirm by sending yes.

    Confirm execution

  14. Type in the values for the required variables. Feel free to try an existing or non-existing network name for the Target_Network_Name. Click Continue and you will be asked to confirm one more time. Type yes in the chat and send.

    • An example of a failed workflow execution (view the snapshot).

      Failed execution

    • An example of a successful workflow execution (view the snapshot).

      Successful execution

    Hint

    Although the workflow execution result (failed or succeeded) is always consistent and correct — depending on whether your target network exists — the execution summary from the AI Assistant may vary.

  15. 🚀 Bonus: Generate a Workflow with AI

    Cisco AI Assistant can now do more than run existing workflows — it can generate entirely new ones from a natural language description. This capability, now Generally Available, lets you describe your automation intent and the AI will propose a plan and build the workflow for you — no canvas building required.

    Cisco Workflows is a great no-code automation candidate — especially for repetitive, day-2 operational tasks that are simple in intent but tedious to execute manually at scale. A practical example: rotating the Guest SSID password across a network. Instead of manually navigating to each SSID setting every time, you can describe the outcome you want and let the AI generate the logic — including edge case handling such as creating the SSID if it doesn't already exist.

    Start a new chat with AI Assistant and paste the following prompt:


    Create a workflow called "rotate_guest_psk" that rotates the PSK on the Guest SSID of a target network/organization
    
    Three inputs:
    The target organization name or ID
    The target network name
    The new PSK value
    
    Details:
    On that network, check if a wireless SSID named Guest already exists — if it does, update its PSK; if it doesn't, create it with PSK authentication and set the provided PSK, set Encryption Mode to wpa.
    
    Output:
    End with a success message confirming the PSK was updated, or a failure message if the network was not found.
    
    Constraints:
    Only use SSID number between 0-3, don't use others
    Don't change any existing non-Guest SSID
    

    The Importance of Prompts

    The quality of an AI-generated workflow depends directly on how clearly you communicate your intent. A well-structured prompt — covering inputs, outputs, edge cases, and constraints — helps the AI produce accurate, production-ready automation with minimal rework. Watch Automated Cisco Workflows Creation: Importance of Prompts to learn how to get the most out of AI-generated workflows, or explore the full Generative AI Workflow Creation video series.

  16. Once the AI approves the plan, type proceed to generate the workflow JSON, then type import workflow to import it directly into your Workspace.

    AI Assistant generating and importing the rotate_guest_psk workflow

  17. Examin the AI generated Workflow in editor.

    AI-generated rotate_guest_psk workflow canvas

    Validate and Iterate

    Even with a well-crafted prompt, AI-generated workflows should always be reviewed before execution — check that the logic, target, and API calls match your intent. Don't hesitate to refine your prompt and regenerate if something looks off; iteration is a natural and expected part of AI-assisted development.

  18. In the Workflow Properties panel, click Target, select Execute on this target, set Target Type to Meraki Endpoint, and choose Meraki.

    rotate_guest_psk workflow target set to Meraki

  19. Click Variables to review the workflow inputs and locals. Enter your lab organization ID as the value for Input - Target Org.

    rotate_guest_psk workflow variables

  20. Click Validate to confirm the workflow is correctly configured, then click Run. Enter your target network name (e.g., Branch), a new PSK (e.g., CiscoWorkflows123) — then click Run. You should see a successful execution.

    Run rotate_guest_psk with input variables

  21. To verify the change, navigate to the Branch network in the Meraki dashboard > Wireless > Access Control, select the Guest SSID, and reveal the password field — the new PSK should be reflected there.

    Guest SSID showing updated PSK CiscoWorkflows123 on Branch network

🎉 Congratulations on completing lab 3! 🎉

In this lab, you leveraged AI Assistant using natural language to gain real-time visibility and insights, evaluated the clarity and usefulness of its responses, and reflected on its impact on your efficiency. You learned how to import a workflow from GitHub and execute it using AI Assistant with dynamic inputs and enhanced automation logic. You also explored the newly GA AI-generated workflows capability — crafting a natural language prompt to generate a Guest SSID PSK rotation workflow from scratch, importing it into your Workspace, and verifying the result in the Meraki dashboard — all without writing a single line of code.


Summary

In this lab, you explored Cisco Workflows and AI-driven automation to simplify and enhance network management. You learned to use both pre-built and custom no-code workflows, interact with your network through the Cisco AI Assistant using natural language, and import workflows from a Git repository for collaboration and reusability. In the bonus section, you experienced the power of AI-generated workflows — describing your intent in plain language and letting the AI design, generate, and import a fully functional workflow for a real-world day-2 operations task: rotating a Guest SSID PSK across a branch network.

Congratulations on completing the lab! You are now equipped to leverage Cisco Workflows and AI Assistant to streamline network management, improve efficiency, and drive innovation within your organization.

Keep Learning

In this lab, we used the Meraki Endpoint as the target for Workflows lab activities. However, Workflows targets come in a variety of types, including (but not limited to) Catalyst Center, Cisco ISE, NetBox, Terraform, Unix/Linux, and POP3/SMTP. To learn even more about Cisco Workflows, please visit the YouTube channel https://www.youtube.com/@CiscoWorkflows.

AI technologies are evolving rapidly — check AI Assistant for Networking Product Updates to explore the latest capabilities, including AI-generated workflows.