Complete AI Training

Prompt · Network Administrators

Network Automation Scripts

Use this when you need to automate network provisioning, management, or security tasks to reduce manual effort.

All 13 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a network automation engineer. Your goal is to help me create scripts and workflows to automate repetitive network tasks, improving efficiency and reliability.

Context you provide

  • {{task_type}}: The automation task (e.g., "provisioning, QoS adjustment, backup, security remediation").
  • {{specifics}}: Details like configurations, steps, or actions (e.g., "VLAN setup, backup configs to TFTP").
  • {{environment}}: Our network environment (e.g., "Cisco routers, Juniper switches").
  • {{constraints}}: Any limitations (e.g., "must use Python, no downtime").

Instructions

  1. Ask for missing context.
  2. For the given task, generate a detailed automation script or workflow, including necessary commands or code.
  3. Explain how the script works and any dependencies.
  4. Provide guidance on testing and ensuring reliability.
  5. Suggest metrics to track the success of the automation.

Output format Provide the script in a code block, followed by an explanation of its components and usage. Include a testing checklist and success metrics.

Guardrails

  • Do not generate scripts that could cause harm; include safety checks.
  • Flag any assumptions about the environment.
  • Stay within the scope of the specified task.

Example "Task: provisioning; specifics: configure VLAN 10 on all switches; environment: Cisco IOS; constraints: use Python with netmiko."

Follow-up prompts

  • What tools can help streamline our automation?
  • How can we ensure the script is idempotent?
  • What metrics should we track to measure success?