Please enable JavaScript.
Coggle requires JavaScript to display documents.
SOURCING AGENT -- FLOWCHART - Coggle Diagram
SOURCING AGENT -- FLOWCHART
START
Receive approved job requirements from Job Agent and task instructions from Orchestrator
GENERATE SEARCH QUERIES
Create skill-based keywords, job-title variations and location / experience combinations
SEARCH CANDIDATES
Execute authorized API and database searches;
handle pagination and rate limits
FILTER CANDIDATE PROFILES
Check job-related skills, experience, location and other approved criteria
DECISION: ARE RELEVANT CANDIDATES FOUND?
YES
Continue processing
Send relevant profiles for deduplication
NO
Suggest search changes
Report zero matches and request approval to broaden criteria
VALIDATE CANDIDATE INFORMATION
Check required fields, source provenance, resume references and permissions
DECISION: IS CANDIDATE DATA VALID?
YES
Store candidate records
Save profiles in PostgreSQL and resumes in S3
NO
Flag incomplete records
Retry permitted retrieval or mark missing fields; exclude unusable records
GENERATE SOURCING REPORT
Candidate count • Unique profiles • Duplicates
Source coverage • Incomplete records • Errors
FAILURE HANDLING PRINCIPLE
Retry safely
Use alternative authorized sources
Preserve partial results
Report unresolved issues to Orchestrator
UNDERSTAND JOB REQUIREMENTS
Extract job title, skills, experience, location, employment type and candidate count
DECISION: ARE JOB REQUIREMENTS COMPLETE?
YES
Generate search queries
Proceed to source selection
NO
Request missing details
Ask Job Agent / Orchestrator for clarification, then retry
SELECT AUTHORIZED CANDIDATE SOURCES
ATS • Internal database • Employee referrals
Approved job portals • GitHub public API
DECISION: ARE SOURCES AVAILABLE AND ACCESSIBLE?
YES
Search candidates
Execute API and database searches
NO
Handle source failure
Check permissions, retry safely or use another authorized source
RETRIEVE CANDIDATE PROFILES
Collect available name, skills, experience, location, profile URL and resume reference
DECISION: WERE CANDIDATE PROFILES RETRIEVED?
YES
Filter candidates
Check skills, experience and location
NO
Expand search
Try alternative queries or authorized sources; report no results if still empty
DETECT DUPLICATE CANDIDATES
Compare permitted identifiers and profile details; retain source history
DECISION: ARE DUPLICATE RECORDS FOUND?
YES
Identify and consolidate
Merge high-confidence duplicates; retain source history
NO
Keep all unique records
Continue to data validation
STORE CANDIDATE RECORDS
PostgreSQL: candidate profiles and metadata
AWS S3: resume documents
SUCCESSFUL SOURCING OUTPUT
Send candidate IDs and resume references to Resume Agent
Send candidate profile references to Matching Agent
Send sourcing report and status to Orchestrator