← Back to Dashboard
Lab Exercise

Copilot Chat Mastery

Leveraging AI for structured data organization and visualization.

Objective: Learn to use GitHub Copilot Chat to generate structured tables and diagrams from raw text.

Prerequisite: Access to GitHub Copilot (VS Code extension or GitHub.com).


📊 Mission 1: The Organizing Engine (Tables)

Copilot Chat works excellently as a "structuring engine." It can take messy unstructured text and convert it into clean Markdown tables.

The Scenario

You have a list of team members with various details scattered in a text block. You need a reference table.

Step 1: The Prompt

Copy the following raw data and paste it into Copilot Chat with the instruction: "Convert the following information into a markdown table."

Name: Alice  
Age: 30  
Occupation: Engineer
Timezone: PST
Availability: Mon-Fri, 9am-5pm

Name: Bob  
Age: 25  
Occupation: Designer
Timezone: EST
Availability: Mon-Thu, 10am-6pm

Name: Carol  
Age: 27  
Occupation: Writer
Timezone: CST
Availability: Mon-Thu, 8am-4pm

Name: Dave
Age: 35
Occupation: Manager
Timezone: PST
Availability: Mon-Fri, 10am-6pm

Step 2: The Output

Copilot should generate a Markdown table similar to this:

Name Age Occupation Timezone Availability
Alice30EngineerPSTMon-Fri, 9am-5pm
Bob25DesignerESTMon-Thu, 10am-6pm
Carol27WriterCSTMon-Thu, 8am-4pm
Dave35ManagerPSTMon-Fri, 10am-6pm

📈 Mission 2: Visualizing Time (Mermaid Diagrams)

Copilot can also generate code for diagrams. We will use Mermaid.js syntax, which GitHub supports natively.

The Scenario

You need to visualize a 6-month project timeline with overlapping phases.

Step 1: The Prompt

Ask Copilot:

"Create a Mermaid Gantt diagram that covers the period August 1st 2025 until January 31st, 2026. Include 5 phases, each taking 6 weeks, and overlapping equally."

Step 2: The Output

Copilot will provide a code block starting with ```mermaid. Copy this code.

Step 3: Verification

Paste the code into a Markdown file (e.g., creating a timeline.md file in VS Code) to see the rendered chart.

gantt
    title Project Timeline: Aug 2025 - Jan 2026
    dateFormat  YYYY-MM-DD
    axisFormat  %b %d

    section Phase 1
    Phase 1           :a1, 2025-08-01, 42d

    section Phase 2
    Phase 2           :a2, 2025-09-07, 42d

    section Phase 3
    Phase 3           :a3, 2025-10-13, 42d
    
    ... (continued)

🧠 Advanced Challenge: Combined Output

Try asking Copilot to:

"Take the table of users from Mission 1 and create a Mermaid Gantt chart showing their availability overlaps based on their timezones, assuming a standard 9-5 workday in each zone."

This tests Copilot's ability to reason about timezones and synthesize data into a visual format.


📚 Mission 3: Synthesizing Research (Space Edition)

Copilot Chat can synthesize findings from multiple sources into a cohesive summary, crucial for rapid technical reviews.

The Scenario

You are an ISU researcher investigating Autonomous Swarm Robotics for Martian lava tube exploration. You need to summarize a technical abstract into key insights.

Step 1: The Prompt

Copy the following research text and prompt Copilot: "Synthesize this research into a summary outlining the key technical trends and mission-critical insights:"

**Title:**
Swarm Robotics for Subsurface Martian Reconnaissance: The 'Arachnid' Protocol

**Abstract:**
This study explores the viability of deploying autonomous micro-rover swarms for mapping Martian lava tubes, a potential site for future human habitation. Unlike traditional monolith rovers (Curiosity, Perseverance), swarms offer redundancy and parallel processing.

---

### 1. Introduction
Martian lava tubes offer shielding from cosmic radiation. However, their skylights are inaccessible to heavy rovers. We propose 'Arachnid': a decentralized swarm of 50-100 micro-crawlers dropped via tether.

### 2. Communication Protocols
Direct-to-Earth comms are impossible from underground. The swarm uses a "bread-crumb" relay network, where specific units sacrifice mobility to become permanent signal repeaters.

### 3. Power Systems
Solar is non-viable. The study evaluates Radioisotope Thermoelectric Generators (RTGs) vs. high-density Betavoltaics. Conclusion: Betavoltaics offer substantially higher operational lifespan (20+ years) for low-draw sensor suites.

### 4. Lidar Mapping
Individual units possess low-res Lidar. The innovation lies in "Synthetic Aperture Lidar" where the swarm combines data to create high-fidelity 3D maps of the tube structure.

### 5. Failure Modes
In simulations, up to 40% of the swarm can be lost to terrain hazards without compromising the primary mapping mission, demonstrating high partition tolerance.

Step 2: The Expected Output

Copilot should produce a structured summary identifying the shift from Monolith -> Swarm, the "Bread-crumb" comms solution, and the Betavoltaic power decision.