AI Request

AI Request is an optional part of applying to jobs with Wrangle. On this page, we'll explore how to generate applications.

Return

This endpoint returns a JSON object that contains an array of answers to each question input.


The Request

  • Name
    questions
    Type
    array
    Description

    Array of strings that represent questions in the job form.

  • Name
    uid
    Type
    string
    Description

    Valid UID from a company profile.

  • Name
    selectedJob
    Type
    dictionary
    Description

    Contains companyName (string—company name), and title (string—job title).

  • Name
    jobIdentifier
    Type
    string
    Description

    Hashed job id.

Returns

  • Name
    parsedAnswers
    Type
    dictionary
    Description

    Answers to all questions given in a specific format (see example response below).

  • Name
    jobIdentifier
    Type
    string
    Description

    Hashed job id.

Endpoint Usage

This endpoint allows the caller to utilize our prompt to generate high quality AI responses for job application questions.

Request

POST
/api/api-ai-request
curl -X POST https://app.wranglejobs.com/api/api-ai-request \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {api-key}" \
  -d '{"questions": "label|type|is_required\nlabel|type|is_required", "uid": "user_uid", "selectedJob": {"companyName": "company_name", "title": "job_title"}}'

Response

{
  "res": [
    {
      "parsedAnswers": [
        {
          "question_1": "answer_1",
          "question_2": "answer_2",
          //...
        },
      ],
      "jobIdentifier": "hashed job identifier"
    },
  ]
}

Was this page helpful?