headhunter_zh.json


Overview

headhunter_zh.json defines a conversational dialogue flow configuration for a Chinese-language AI-driven recruitment chatbot specialized in the AGI (Artificial General Intelligence) domain. This JSON file structures the components, their parameters, and the flow logic for interacting with candidates, handling responses, categorizing queries, generating replies, and managing conversation pathways.

The chatbot’s primary purpose is to engage with potential candidates for senior engineering positions at RAGFlow, gracefully handling various types of user input — from job-related questions to casual chit-chat and rejection responses — while guiding the conversation towards collecting contact information (e.g., WeChat ID) and delivering relevant job information.


Detailed Explanation of Components and Workflow

This file contains a set of conversational components, each represented as nodes with specific roles, parameters, and connectivity. The components are connected via upstream and downstream references, establishing the conversational flow.


Components

Each component is a node with:


Component Types

Below are detailed descriptions of each component type and their usage in this flow:


1. Begin


2. Answer


3. Categorize


4. Message


5. Generate


6. Retrieval


Workflow Summary

  1. Begin initiates conversation with a greeting and job introduction.

  2. Candidate's first response is captured by answer:0.

  3. categorize:0 classifies the response:

    • If interested → message:introduction (job intro).

    • If casual → generate:casual (steer back to job).

    • If about job → retrieval:0generate:aboutJob (answers job questions).

    • If reject → message:reject (polite goodbye).

  4. answer:1 captures follow-up responses.

  5. categorize:1 further classifies follow-ups with additional categories including WeChat sharing.

  6. According to classification, the flow continues with generation components like generate:get_wechat or generate:nowechat to handle contact info sharing.

  7. Conversation loops through answers and categorizations, maintaining context with message history windows.


Important Implementation Details and Algorithms


Interaction with Other System Parts


Usage Example

A typical interaction flow:

  1. System sends the Begin prologue:
    "您好!我是AGI方向的猎头,了解到您是这方面的大佬..."

  2. Candidate replies: "请问具体工作内容是啥?"

  3. answer:0 captures reply → categorize:0 classifies as about_jobretrieval:0 fetches job info → generate:aboutJob answers with job details and invites WeChat.

  4. Candidate replies: "可以,微信是windblow_2231"

  5. answer:1categorize:1 classifies as wechatgenerate:get_wechat responds with thanks and contact info.


Visual Diagram

flowchart TD
    Begin["Begin\n(prologue)"]
    Answer0["Answer:0"]
    Categorize0["Categorize:0\n(classify initial response)"]
    MessageIntro["Message:Introduction\n(job intro message)"]
    Answer1["Answer:1"]
    Categorize1["Categorize:1\n(classify follow-up)"]
    MessageReject["Message:Reject\n(politeness on rejection)"]
    GenerateCasual["Generate:Casual\n(handle chit-chat)"]
    Retrieval["Retrieval:0\n(fetch job info)"]
    GenerateAboutJob["Generate:AboutJob\n(answer job questions)"]
    GenerateGetWeChat["Generate:Get_WeChat\n(handle positive WeChat)"]
    GenerateNoWeChat["Generate:NoWeChat\n(handle refusal WeChat)"]

    Begin --> Answer0
    Answer0 --> Categorize0

    Categorize0 -->|interested| MessageIntro
    Categorize0 -->|about_job| Retrieval
    Categorize0 -->|casual| GenerateCasual
    Categorize0 -->|answer (reject)| MessageReject

    MessageIntro --> Answer1
    Retrieval --> GenerateAboutJob
    GenerateAboutJob --> Answer1
    GenerateCasual --> Answer1
    MessageReject --> Answer0

    Answer1 --> Categorize1

    Categorize1 -->|about_job| Retrieval
    Categorize1 -->|casual| GenerateCasual
    Categorize1 -->|wechat| GenerateGetWeChat
    Categorize1 -->|giveup| GenerateNoWeChat

    GenerateGetWeChat --> Answer1
    GenerateNoWeChat --> Answer1

Diagram Explanation:
This flowchart illustrates the main components and their interactions in the conversational process. It shows the two categorization stages that direct conversation based on candidate responses, the use of retrieval to get job information, and generation components that handle dynamic replies and contact information negotiation.


Summary

headhunter_zh.json is a structured, modular dialogue flow definition for a Chinese AGI-focused recruitment chatbot. It leverages advanced classification, retrieval, and generation techniques to conduct natural, context-aware conversations with candidates, providing job information and collecting contact details with sensitivity and politeness. The file is designed to be used by a conversational AI framework that manages execution, user interaction, and integration with external knowledge bases and language models.