Liya Engine

General Chat

Open-ended career and workplace conversation — questions, advice, and information not covered by a structured intent.

POST /v1/hiring/general-chat

A conversational fallback for career-related questions that don't map to a specific structured intent. The engine responds as a knowledgeable career assistant. Useful for building chat UIs where users ask free-form questions.


Required inputs

FieldTypeNotes
input.user_idstringYour platform's user ID
input.messagestringThe user's question or message

Optional inputs

FieldTypeNotes
input.profileProfileInputEnables contextualised answers
input.resumeResumeInputResume context
input.career_goalsCareerGoalsInputGoal context
input.session_historySessionHistoryInputConversation history via session_id
session_idstringContinue a session

Example request

curl -X POST https://api.liyaengine.ai/v1/hiring/general-chat \
  -H "x-api-key: $LIYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "user_id": "usr_123",
      "message": "What is the difference between a staff engineer and an engineering manager?"
    }
  }'

Response

{
  "success": true,
  "data": {
    "output": {
      "message": "Both are senior roles but they represent two different career tracks...",
      "turn": 1,
      "session_active": true
    },
    "session_id": "ses_chat_abc"
  }
}

When to use general-chat vs coaching-session

general-chatcoaching-session
Best forQuestions, factual answers, quick adviceOngoing, personal coaching relationship
Session memoryOptionalRecommended — memory improves coaching quality
Output structureConversational messageMessage + suggested follow-ups + session state
ToneInformativeEmpathetic and goal-oriented

On this page