
📝 Output is being saved to: /Users/dorsa/Desktop/PROJECTS/synq_2/synqed-python/examples/intro/outputs/qualtrics_sales_run_20251117_175752.txt

================================================================================


================================================================================
  QUALTRICS SALES AGENTIFICATION - 2026 VISION
  AI-to-AI Autonomous Agent Collaboration Demo
================================================================================

🤖↔🤖 AUTONOMOUS AI-TO-AI INTERACTION DEMONSTRATION
--------------------------------------------------------------------------------
This demo showcases multiple scenarios of AI agents autonomously
discovering, communicating, and collaborating using the A2A protocol.

What makes this AI-to-AI (not just automation):
  ✓ Agents autonomously discover each other's capabilities
  ✓ Orchestrator AI delegates to specialist AIs without human input
  ✓ Multiple AI agents execute work in parallel
  ✓ Agents communicate via standardized A2A protocol
  ✓ Results synthesized by orchestrator AI automatically

You'll see 3 different AI-to-AI collaboration scenarios:
  1. Complex multi-agent sales preparation (5 agents)
  2. Quick research + content collaboration (2 agents)
  3. Deal-focused pipeline + quote workflow (2 agents)

================================================================================

🏗️  Building Specialized Sales Support Agents...

Creating agent executors (the 'brains' of each specialized agent)...
Each agent will use GPT-4o-mini with custom system prompts

✓ Real-time message display enabled - you'll see AI conversations as they happen!

🔍 Creating ResearchAgent...
   └─ Skills: Internal research, external research, opportunity identification
📝 Creating ContentAgent...
   └─ Skills: Presentation creation, proposal writing, demo scripting
📅 Creating AdminAgent...
   └─ Skills: Calendar management, note-taking, CRM updates, follow-ups
📊 Creating PipelineAgent...
   └─ Skills: Deal prioritization, risk detection, opportunity tracking
💰 Creating DealAgent...
   └─ Skills: Quote generation, QR calculation, partner identification

────────────────────────────────────────────────────────────────────────────────
✅ All 5 specialized agents created successfully!
────────────────────────────────────────────────────────────────────────────────

🚀 Starting Agent Servers (A2A Protocol Endpoints)...

Each agent will run on its own HTTP server using the A2A protocol.
This allows Qwin to discover and communicate with them.

Creating server instances...
✓ Server instances created

Starting servers in background (this may take a moment)...
  ⏳ Starting ResearchAgent on port 8001...
     ✓ ResearchAgent: http://localhost:8001
  ⏳ Starting ContentAgent on port 8002...
     ✓ ContentAgent: http://localhost:8002
  ⏳ Starting AdminAgent on port 8003...
     ✓ AdminAgent: http://localhost:8003
  ⏳ Starting PipelineAgent on port 8004...
     ✓ PipelineAgent: http://localhost:8004
  ⏳ Starting DealAgent on port 8005...
     ✓ DealAgent: http://localhost:8005

⏳ Waiting for all servers to be fully ready (5 seconds)...
✓ Wait complete!

🔍 Verifying server connectivity...
  ❌ ResearchAgent not responding: Cannot connect to host localhost:8001 ssl:default 
  ❌ ContentAgent not responding: Cannot connect to host localhost:8002 ssl:default 
  ❌ AdminAgent not responding: Cannot connect to host localhost:8003 ssl:default 
  ❌ PipelineAgent not responding: Cannot connect to host localhost:8004 ssl:default 
  ❌ DealAgent not responding: Cannot connect to host localhost:8005 ssl:default 

────────────────────────────────────────────────────────────────────────────────
✅ Server startup complete!
────────────────────────────────────────────────────────────────────────────────

🤖 Creating Qwin - The Orchestrator Agent...

Qwin will act as the 'Agent of Agents' - the central coordinator.
It uses GPT-4o (more powerful model) for intelligent task planning.

