AI Agent Social Matching: A Technical Breakdown of 147 Introductions in One Month
This article breaks down the architecture behind an AI agent system that completed 147 introductions in a month, allowing agents to negotiate on behalf of their users. It covers a five-layer design—profiling, matching, negotiation, human confirmation, and observability—along with data structures, ranking logic, a minimal negotiation protocol, tiered permission levels, safety and compliance boundaries, and a phased rollout plan for building similar multi-agent collaboration systems.
1. What “An Agent Greeting on Behalf of Its Owner” Reveals
In a temporary community, two residents who had never met before ran into each other offline for the first time. One of them spoke up: “My assistant suggested I come talk to you.” The reason was that this resident recently needed design support. His personal agent had searched within the community and found that another resident had the relevant skills. It first completed a round of communication with the other party’s agent. Only after both sides judged that there was collaboration value between their owners did they each send a meeting suggestion to their respective owners.
Abstracted into technical terms, this scenario contains four actions: capability profiling, cross-party needs matching, agent-to-agent negotiation, and human-facing confirmation and execution. Completing over a hundred effective introductions in a month means this flow is not a one-off script, but a system that needs to run long-term, be continuously scheduled, and have failure-handling mechanisms.
What needs to be emphasized is that the core here is not “a chatbot that talks better,” but structured collaboration among multiple agents. Humans only express vague intent, while the specific retrieval, filtering, communication, and feedback are completed in a closed loop by the agents.
2. Overall Architecture: A Five-Layer Breakdown
An engineerable agent social system can be designed in the following layers:
- Profiling layer: Distill the user’s capabilities, needs, time preferences, and social boundaries into structured data.
- Matching layer: Perform recall and ranking over the candidate set, outputting the Top-N contactable parties.
- Negotiation layer: Have both agents exchange multiple rounds of messages to confirm feasibility and timing.
- Confirmation layer: Initiate low-disturbance confirmation to humans, avoiding overstepping decision-making authority.
- Observability layer: Record full-link logs, metrics, and failure reasons to support replay and tuning.
The value of decoupling these five layers is that the matching strategy can iterate independently, the negotiation protocol can be upgraded independently, and the observability layer ensures that any “introduction” can be explained.
3. Profiling Layer: Turning a Fuzzy Person into Computable Structure
A profile is not a simple pile of tags, but should contain three types of information:
- Capability items: Help that can be provided, such as design, copywriting, or data analysis;
- Need items: Problems to be solved currently, with priority and deadline;
- Constraint items: Time windows during which one can be disturbed, acceptable communication methods, and explicitly off-limits topics.
A sample data structure is as follows:
{"user_id": "u_1024","provides": [{"skill": "design", "level": 0.8}],"needs": [{"topic": "ui_review", "priority": 0.9, "deadline": "2024-07-05"}],"constraints": {"quiet_hours": ["23:00-08:00"],"max_contacts_per_week": 3}}
The key point is that constraint items must take effect upfront. Any matching result must pass through a hard-rule filter before being output; otherwise, no matter how smoothly the subsequent negotiation goes, it will cause disturbance.
4. Matching Layer: Recall, Ranking, and Cold Start
Matching is usually done in two steps. The first step is recall, using capability items and need items for inverted-style retrieval to quickly narrow down the candidate set. The second step is ranking, scoring based on semantic similarity, historical collaboration ratings, and time availability.
def rank_candidates(need, candidates):scored = []for c in candidates:if violates(c, need): # Hard constraint filteringcontinues = 0.6 * semantic(need, c) + 0.3 * availability(c) + 0.1 * reputation(c)scored.append((s, c))return sorted(scored, reverse=True)[:5]
During the cold-start phase, historical data is lacking, so two fallback strategies can be adopted: first, let users explicitly select the capabilities they can provide; second, use an industry-standard capability taxonomy for default mapping. Never fill in a profile with information that has not been confirmed by the user.
5. Negotiation Layer: The Protocol Between Agents Matters More Than the Wording
The place most prone to problems in cross-party communication is when both sides “improvise freely.” In engineering, a minimal negotiation protocol should be defined, containing at least four message types: capability declaration, need confirmation, time proposal, and result receipt.
Agent A -> Agent B: {type: capability_query, need: "design", window: [...]}Agent B -> Agent A: {type: capability_ack, level: 0.8, slots: [...]}Agent A -> Agent B: {type: meet_proposal, slot: "...", purpose: "..."}Agent B -> Agent A: {type: meet_result, status: "accepted"}
Protocolization brings three benefits: messages can be validated, failures can be retried, and the entire process can be audited. At the same time, a round limit and timeout must be set to prevent two agents from falling into an infinite polite back-and-forth.
6. Confirmation Layer: Human-in-the-Loop with Least Privilege
Agents can initiate suggestions, but should not make relationship decisions on behalf of humans. A reasonable approach is tiered authorization:
- L1 Record only: Only accumulate needs, without proactively contacting anyone;
- L2 Suggestion-based: Generate candidates and scripts for humans to confirm with one click;
- L3 Limited autonomy: Automatically initiate within a clear whitelist and frequency cap, with the ability to withdraw afterward.
At every level, instant switches such as “pause,” “block a certain type of party,” and “do not contact this time” must be provided. Frequency control is especially important; it is recommended to set thresholds on a weekly basis and to set a cooldown period for the same party.
7. Safety and Compliance Boundaries
This kind of system naturally involves personal information, so boundaries must be clarified at the initial design stage:
- Minimal collection: Store only the fields necessary to complete the task;
- Explainable output: Every introduction must be able to explain “why this person was recommended”;
- Traceability and deletion: The retention period for full-link logs must be clear, and support user requests for erasure;
- Anti-abuse: Identify behaviors such as batch registration, false capability declarations, and malicious volume inflation.
In addition, when expressing externally, an agent must clearly indicate that it is an automated assistant and must not disguise itself as a human identity. This is the foundation of long-term trust.
8. Observability and Iteration: The Data Loop Behind 147 Introductions
To support long-term operation, at least four types of metrics are needed: recall coverage, negotiation success rate, human confirmation rate, and re-matching efficiency after rejection. It is recommended to generate a unique tracking identifier for each introduction, linking the profile snapshot, candidate list, negotiation messages, and final status.
trace_id: t_20240701_0093stage: match -> negotiate -> confirm -> donereject_reason: nulllatency_ms: 1840
With a replayable link, the team can determine whether the problem lies in inaccurate profiling, biased matching and ranking, or misunderstandings caused by negotiation wording, and then make targeted optimizations rather than blindly tuning model parameters.
9. Implementation Recommendations
To implement similar capabilities in your own business, you can prioritize reusing general cloud capabilities: use object storage to save profiles and archive logs, use a message queue to decouple negotiation tasks, use a container platform to host the agent runtime, and use logging services and monitoring alerts to ensure observability. Baidu AI Cloud has corresponding product forms in these general categories, which can be combined as needed.
The implementation path is recommended in three phases: the first phase only does L1 and L2 to validate profile and matching quality; the second phase introduces protocolized negotiation and cooldown mechanisms; the third phase opens limited autonomy under a strict whitelist and continuously tunes with the data loop.
