File size: 53,747 Bytes
03ccf6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cd07598
03ccf6d
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LK-VAPI-Migration - API Documentation</title>
    <style>
        body { margin: 0; padding: 0; }
        #opencollection-container { width: 100vw; height: 100vh; }
    </style>
    <link rel="stylesheet" href="https://cdn.opencollection.com/docs.css">
    <script src="https://cdn.opencollection.com/docs.js"></script>
</head>
<body>
    <div id="opencollection-container"></div>
    <script>
        const collectionData = "opencollection: 1.0.0\ninfo:\n  name: LK-VAPI-Migration\nitems:\n  - info:\n      name: STRUCTURED OUTPUTS\n      type: folder\n      seq: 3\n    request:\n      auth: inherit\n    items:\n      - info:\n          name: AZ Generate JSON (chatcompl)\n          type: http\n          seq: 2\n        http:\n          method: POST\n          url: https://{{RESOURCE_NAME}}.openai.azure.com/openai/deployments/{{AZURE_DEPLOYMENT}}/chat/completions?api-version=2024-12-01-preview\n          headers:\n            - name: api-key\n              value: '{{AZURE_API_KEY}}'\n            - name: content-type\n              value: application/json\n          params:\n            - name: api-version\n              value: 2024-12-01-preview\n              type: query\n          body:\n            type: json\n            data: |-\n              {\n                \"temperature\": 0,\n                \"messages\": [\n                  {\n                    \"role\": \"system\",\n                    \"content\": \"Extract comprehensive employment verification data from the complete reference call transcript as per the json schema provided.\"\n                  },\n                  {\n                    \"role\": \"user\",\n                    \"content\": \"{{TRANSCRIPT_STR}}\"\n                  }\n                ],\n                \"response_format\": {\n                  \"type\": \"json_schema\",\n                  \"json_schema\": {{SCHEMA}}\n                },\n                \"stream\": false\n              }\n          auth: inherit\n        runtime:\n          variables:\n            - name: TRANSCRIPT_ARR\n              value: '[{\"role\":\"assistant\",\"text\":\"Hi Reese Snow, this is Sarah from Acme Inc.. I''m calling about Melissa Sanders β€” they mentioned you as a professional reference. Do\",\"timestamp\":1774011919966},{\"role\":\"user\",\"text\":\"Yes.\",\"timestamp\":1774011948363},{\"role\":\"assistant\",\"text\":\"Great! First, could you tell me how you know Melissa Sanders and what your working relationship was?\",\"timestamp\":1774011948366},{\"role\":\"user\",\"text\":\"I know Melissa from Tech Innovations where we collaborated on a software project for two years.\",\"timestamp\":1774011967199},{\"role\":\"user\",\"text\":\"I was the project manager.\",\"timestamp\":1774011971106},{\"role\":\"user\",\"text\":\"And Melissa was the lead developer. We worked closely together sharing insights and achieving project goals.\",\"timestamp\":1774011975877},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” what really stands out about Melissa Sanders? I''m particularly curious about how they handle pressure, their customer service approach, and overall professionalism.\",\"timestamp\":1774011975878},{\"role\":\"user\",\"text\":\"We worked together for approximately two years\",\"timestamp\":1774012003556},{\"role\":\"user\",\"text\":\"building a strong professional rapport during that time.\",\"timestamp\":1774012004276},{\"role\":\"user\",\"text\":\"Melissa excels under pressure. Consistently delivering quality results during tight deadlines\",\"timestamp\":1774012010788},{\"role\":\"user\",\"text\":\"customer service is exceptional\",\"timestamp\":1774012015978},{\"role\":\"user\",\"text\":\"She listens and offers tailored solutions. Overall, she embodies professionalism\",\"timestamp\":1774012021547},{\"role\":\"user\",\"text\":\"and fosters a positive team environment.\",\"timestamp\":1774012022269},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” how would you describe Melissa''s style working with others β€” colleagues, customers, that sort of thing?\",\"timestamp\":1774012022271},{\"role\":\"user\",\"text\":\"Melissa is collaborative and approachable.\",\"timestamp\":1774012040673},{\"role\":\"user\",\"text\":\"She encourages open dialogue with colleagues and builds strong relationships with customers\",\"timestamp\":1774012048777},{\"role\":\"user\",\"text\":\"through empathy and effective communication.\",\"timestamp\":1774012049501},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” if you were their supervisor, what''s one piece of advice you''d give me to help Melissa Sanders succeed in this role?\",\"timestamp\":1774012049502},{\"role\":\"user\",\"text\":\"Encourage Melissa to seek regular feedback from peers and clients\",\"timestamp\":1774012075077},{\"role\":\"user\",\"text\":\"to enhance her skills further.\",\"timestamp\":1774012079497},{\"role\":\"user\",\"text\":\"Opportunities for professional development will also support her growth.\",\"timestamp\":1774012080192},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” based on what you know about our Project Manager role, do you think Melissa Sanders would be a good match? I''d love your honest thoughts.\",\"timestamp\":1774012080193},{\"role\":\"user\",\"text\":\"Absolutely. Her organizational skills, ability to handle pressure, and strong customer service focus make her an excellent fit\",\"timestamp\":1774012108137},{\"role\":\"user\",\"text\":\"for the project manager role.\",\"timestamp\":1774012109131},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” before we wrap up, is there anything else about Melissa Sanders that would help us make the best decision?\",\"timestamp\":1774012109133},{\"role\":\"user\",\"text\":\"Melissa''s adaptability and eagerness to learn\",\"timestamp\":1774012129447},{\"role\":\"user\",\"text\":\"are significant assets. Her positive attitude enhances team morale.\",\"timestamp\":1774012136327},{\"role\":\"user\",\"text\":\"Making her a valuable addition to any organization.\",\"timestamp\":1774012136940},{\"role\":\"assistant\",\"text\":\"This has been incredibly helpful β€” thank you so much for your time and insights. We really appreciate you helping us get to know Melissa Sanders better. Have a wonderful day!\",\"timestamp\":1774012136942},{\"role\":\"user\",\"text\":\"Thank you.\",\"timestamp\":1774012157057},{\"role\":\"user\",\"text\":\"Goodbye.\",\"timestamp\":1774012158599},{\"role\":\"assistant\",\"text\":\"Ending the call now.\",\"timestamp\":1774012167994},{\"role\":\"assistant\",\"text\":\"Goodbye!\",\"timestamp\":1774012167994}]'\n            - name: SCHEMA\n              value: '{\"name\":\"refcheck\",\"schema\":{\"description\":\"Extract comprehensive employment verification data from HR reference calls\",\"type\":\"object\",\"properties\":{\"callMetadata\":{\"type\":\"object\",\"properties\":{\"callDuration\":{\"description\":\"Length of the reference call\",\"type\":\"string\"},\"informationQuality\":{\"description\":\"Quality and depth of information provided\",\"type\":\"string\",\"enum\":[\"detailed\",\"adequate\",\"brief\",\"minimal\"]},\"referenceWillingness\":{\"description\":\"Reference''s attitude during the call\",\"type\":\"string\",\"enum\":[\"enthusiastic\",\"cooperative\",\"hesitant\",\"rushed\"]}},\"required\":[\"callDuration\",\"referenceWillingness\"]},\"teamDynamics\":{\"type\":\"object\",\"properties\":{\"teamworkStyle\":{\"description\":\"Overall teamwork approach\",\"type\":\"string\",\"enum\":[\"collaborative\",\"independent\",\"leadership\",\"supportive\",\"mixed\"]},\"customerInteraction\":{\"description\":\"How candidate interacts with customers\",\"type\":\"string\"},\"colleagueInteraction\":{\"description\":\"How candidate works with colleagues\",\"type\":\"string\"}},\"required\":[\"customerInteraction\",\"colleagueInteraction\"]},\"fitAssessment\":{\"type\":\"object\",\"properties\":{\"concerns\":{\"description\":\"Any concerns or reservations mentioned\",\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"roleMatch\":{\"description\":\"Whether candidate is a good match for the position\",\"type\":\"boolean\"},\"fitReasoning\":{\"description\":\"Explanation for fit assessment\",\"type\":\"string\"}},\"required\":[\"roleMatch\",\"fitReasoning\"]},\"referenceInfo\":{\"type\":\"object\",\"properties\":{\"relationship\":{\"description\":\"Professional relationship to candidate\",\"type\":\"string\",\"enum\":[\"supervisor\",\"colleague\",\"direct_report\",\"client\",\"other\"]},\"workDuration\":{\"description\":\"Duration of working together\",\"type\":\"string\"},\"durationKnown\":{\"description\":\"How long the reference has known the candidate\",\"type\":\"string\"},\"referenceName\":{\"description\":\"Name of the reference person\",\"type\":\"string\"},\"relationshipDescription\":{\"description\":\"Detailed description of working relationship\",\"type\":\"string\"}},\"required\":[\"relationship\",\"durationKnown\",\"referenceName\"]},\"candidateStrengths\":{\"type\":\"object\",\"properties\":{\"keyStrengths\":{\"description\":\"List of standout qualities mentioned\",\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"customerService\":{\"description\":\"Customer service approach and skills\",\"type\":\"string\"},\"professionalism\":{\"description\":\"Overall professional conduct\",\"type\":\"string\"},\"pressureHandling\":{\"description\":\"How candidate handles pressure situations\",\"type\":\"string\"}},\"required\":[\"customerService\",\"professionalism\",\"pressureHandling\"]},\"managementInsights\":{\"type\":\"object\",\"properties\":{\"successAdvice\":{\"description\":\"Advice for candidate''s success in the role\",\"type\":\"string\"},\"improvementAreas\":{\"description\":\"Areas where candidate could improve\",\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"successAdvice\"]},\"overallRecommendation\":{\"type\":\"object\",\"properties\":{\"wouldHire\":{\"description\":\"Whether reference would hire the candidate\",\"type\":\"boolean\"},\"additionalComments\":{\"description\":\"Any final thoughts or additional insights\",\"type\":\"string\"},\"recommendationLevel\":{\"description\":\"Overall recommendation level\",\"type\":\"string\",\"enum\":[\"strongly_recommend\",\"recommend\",\"neutral\",\"do_not_recommend\"]}},\"required\":[\"wouldHire\",\"recommendationLevel\"]}},\"required\":[\"teamDynamics\",\"fitAssessment\",\"referenceInfo\",\"candidateStrengths\",\"managementInsights\",\"overallRecommendation\"]}}'\n            - name: RESOURCE_NAME\n              value: o247-ai-sandbox\n            - name: AZURE_API_KEY\n              value: azure_openai_apikey\n            - name: AZURE_DEPLOYMENT\n              value: gpt-4o-mini\n          scripts:\n            - type: before-request\n              code: |-\n                const transcriptArr = JSON.parse(bru.getRequestVar(\"TRANSCRIPT_ARR\"))\n                const transcriptStr = transcriptArr.map(item => {\n                  const role = item.role || 'unknown';\n                  const text = item.text || '';\n                  return `${role.charAt(0).toUpperCase() + role.slice(1)}: ${text}`;\n                })\n                .filter(line => line.trim() !== '')\n                .join('\\\\n');\n\n                bru.setEnvVar(\"TRANSCRIPT_STR\", transcriptStr)\n        settings:\n          encodeUrl: true\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n      - info:\n          name: Basic HF - gpt-oss-120b\n          type: http\n          seq: 5\n        http:\n          method: POST\n          url: https://router.huggingface.co/v1/chat/completions\n          headers:\n            - name: content-type\n              value: application/json\n            - name: Authorization\n              value: Bearer hf_api_key\n          body:\n            type: json\n            data: |-\n              {\n                \"model\": \"openai/gpt-oss-120b:groq\",\n                \"messages\": [\n                  {\n                    \"role\": \"user\",\n                    \"content\": \"Say hello world\"\n                  }\n                ],\n                \"stream\": false\n              }\n          auth: inherit\n        settings:\n          encodeUrl: false\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n      - info:\n          name: BasicCerebras- gpt-oss-120b\n          type: http\n          seq: 4\n        http:\n          method: POST\n          url: https://api.cerebras.ai/v1/chat/completions\n          headers:\n            - name: content-type\n              value: application/json\n            - name: Authorization\n              value: Bearer csk-exnjrkyfph9frctwt46wprjdm99j5x2hk9ecvfw3t2enjh95\n          body:\n            type: json\n            data: |-\n              {\n                \"model\": \"gpt-oss-120b\",\n                \"messages\": [\n                  {\n                    \"role\": \"user\",\n                    \"content\": \"Say hello world\"\n                  }\n                ],\n                \"stream\": false\n              }\n          auth: inherit\n        settings:\n          encodeUrl: false\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n      - info:\n          name: CF Generate JSON (chatcompl)\n          type: http\n          seq: 1\n        http:\n          method: POST\n          url: https://wandering-morning-bdee.mohbim.workers.dev/\n          body:\n            type: json\n            data: |-\n              {  \n                    \"model\": \"qwen-3-235b-a22b-instruct-2507\",  \n                    \"temperature\": 0,  \n                    \"messages\": [    \n                      {    \n                        \"role\": \"system\",    \n                        \"content\": \"Extract comprehensive employment verification data from the complete reference call transcript as per the json schema provided.\"    \n                      },    \n                      {    \n                        \"role\": \"user\",    \n                        \"content\": \"{{TRANSCRIPT_STR}}\"\n                      }    \n                    ],    \n                    \"response_format\": {    \n                      \"type\": \"json_schema\",\n                      \"json_schema\": {{SCHEMA}}\n                    },    \n                    \"stream\": false    \n                  }\n          auth: inherit\n        runtime:\n          variables:\n            - name: TRANSCRIPT_ARR\n              value: '[{\"role\":\"assistant\",\"text\":\"Hi Reese Snow, this is Sarah from Acme Inc.. I''m calling about Melissa Sanders β€” they mentioned you as a professional reference. Do\",\"timestamp\":1774011919966},{\"role\":\"user\",\"text\":\"Yes.\",\"timestamp\":1774011948363},{\"role\":\"assistant\",\"text\":\"Great! First, could you tell me how you know Melissa Sanders and what your working relationship was?\",\"timestamp\":1774011948366},{\"role\":\"user\",\"text\":\"I know Melissa from Tech Innovations where we collaborated on a software project for two years.\",\"timestamp\":1774011967199},{\"role\":\"user\",\"text\":\"I was the project manager.\",\"timestamp\":1774011971106},{\"role\":\"user\",\"text\":\"And Melissa was the lead developer. We worked closely together sharing insights and achieving project goals.\",\"timestamp\":1774011975877},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” what really stands out about Melissa Sanders? I''m particularly curious about how they handle pressure, their customer service approach, and overall professionalism.\",\"timestamp\":1774011975878},{\"role\":\"user\",\"text\":\"We worked together for approximately two years\",\"timestamp\":1774012003556},{\"role\":\"user\",\"text\":\"building a strong professional rapport during that time.\",\"timestamp\":1774012004276},{\"role\":\"user\",\"text\":\"Melissa excels under pressure. Consistently delivering quality results during tight deadlines\",\"timestamp\":1774012010788},{\"role\":\"user\",\"text\":\"customer service is exceptional\",\"timestamp\":1774012015978},{\"role\":\"user\",\"text\":\"She listens and offers tailored solutions. Overall, she embodies professionalism\",\"timestamp\":1774012021547},{\"role\":\"user\",\"text\":\"and fosters a positive team environment.\",\"timestamp\":1774012022269},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” how would you describe Melissa''s style working with others β€” colleagues, customers, that sort of thing?\",\"timestamp\":1774012022271},{\"role\":\"user\",\"text\":\"Melissa is collaborative and approachable.\",\"timestamp\":1774012040673},{\"role\":\"user\",\"text\":\"She encourages open dialogue with colleagues and builds strong relationships with customers\",\"timestamp\":1774012048777},{\"role\":\"user\",\"text\":\"through empathy and effective communication.\",\"timestamp\":1774012049501},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” if you were their supervisor, what''s one piece of advice you''d give me to help Melissa Sanders succeed in this role?\",\"timestamp\":1774012049502},{\"role\":\"user\",\"text\":\"Encourage Melissa to seek regular feedback from peers and clients\",\"timestamp\":1774012075077},{\"role\":\"user\",\"text\":\"to enhance her skills further.\",\"timestamp\":1774012079497},{\"role\":\"user\",\"text\":\"Opportunities for professional development will also support her growth.\",\"timestamp\":1774012080192},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” based on what you know about our Project Manager role, do you think Melissa Sanders would be a good match? I''d love your honest thoughts.\",\"timestamp\":1774012080193},{\"role\":\"user\",\"text\":\"Absolutely. Her organizational skills, ability to handle pressure, and strong customer service focus make her an excellent fit\",\"timestamp\":1774012108137},{\"role\":\"user\",\"text\":\"for the project manager role.\",\"timestamp\":1774012109131},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” before we wrap up, is there anything else about Melissa Sanders that would help us make the best decision?\",\"timestamp\":1774012109133},{\"role\":\"user\",\"text\":\"Melissa''s adaptability and eagerness to learn\",\"timestamp\":1774012129447},{\"role\":\"user\",\"text\":\"are significant assets. Her positive attitude enhances team morale.\",\"timestamp\":1774012136327},{\"role\":\"user\",\"text\":\"Making her a valuable addition to any organization.\",\"timestamp\":1774012136940},{\"role\":\"assistant\",\"text\":\"This has been incredibly helpful β€” thank you so much for your time and insights. We really appreciate you helping us get to know Melissa Sanders better. Have a wonderful day!\",\"timestamp\":1774012136942},{\"role\":\"user\",\"text\":\"Thank you.\",\"timestamp\":1774012157057},{\"role\":\"user\",\"text\":\"Goodbye.\",\"timestamp\":1774012158599},{\"role\":\"assistant\",\"text\":\"Ending the call now.\",\"timestamp\":1774012167994},{\"role\":\"assistant\",\"text\":\"Goodbye!\",\"timestamp\":1774012167994}]'\n            - name: SCHEMA\n              value: '{\"name\":\"refcheck\",\"schema\":{\"description\":\"Extract comprehensive employment verification data from HR reference calls\",\"type\":\"object\",\"properties\":{\"callMetadata\":{\"type\":\"object\",\"properties\":{\"callDuration\":{\"description\":\"Length of the reference call\",\"type\":\"string\"},\"informationQuality\":{\"description\":\"Quality and depth of information provided\",\"type\":\"string\",\"enum\":[\"detailed\",\"adequate\",\"brief\",\"minimal\"]},\"referenceWillingness\":{\"description\":\"Reference''s attitude during the call\",\"type\":\"string\",\"enum\":[\"enthusiastic\",\"cooperative\",\"hesitant\",\"rushed\"]}},\"required\":[\"callDuration\",\"referenceWillingness\"]},\"teamDynamics\":{\"type\":\"object\",\"properties\":{\"teamworkStyle\":{\"description\":\"Overall teamwork approach\",\"type\":\"string\",\"enum\":[\"collaborative\",\"independent\",\"leadership\",\"supportive\",\"mixed\"]},\"customerInteraction\":{\"description\":\"How candidate interacts with customers\",\"type\":\"string\"},\"colleagueInteraction\":{\"description\":\"How candidate works with colleagues\",\"type\":\"string\"}},\"required\":[\"customerInteraction\",\"colleagueInteraction\"]},\"fitAssessment\":{\"type\":\"object\",\"properties\":{\"concerns\":{\"description\":\"Any concerns or reservations mentioned\",\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"roleMatch\":{\"description\":\"Whether candidate is a good match for the position\",\"type\":\"boolean\"},\"fitReasoning\":{\"description\":\"Explanation for fit assessment\",\"type\":\"string\"}},\"required\":[\"roleMatch\",\"fitReasoning\"]},\"referenceInfo\":{\"type\":\"object\",\"properties\":{\"relationship\":{\"description\":\"Professional relationship to candidate\",\"type\":\"string\",\"enum\":[\"supervisor\",\"colleague\",\"direct_report\",\"client\",\"other\"]},\"workDuration\":{\"description\":\"Duration of working together\",\"type\":\"string\"},\"durationKnown\":{\"description\":\"How long the reference has known the candidate\",\"type\":\"string\"},\"referenceName\":{\"description\":\"Name of the reference person\",\"type\":\"string\"},\"relationshipDescription\":{\"description\":\"Detailed description of working relationship\",\"type\":\"string\"}},\"required\":[\"relationship\",\"durationKnown\",\"referenceName\"]},\"candidateStrengths\":{\"type\":\"object\",\"properties\":{\"keyStrengths\":{\"description\":\"List of standout qualities mentioned\",\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"customerService\":{\"description\":\"Customer service approach and skills\",\"type\":\"string\"},\"professionalism\":{\"description\":\"Overall professional conduct\",\"type\":\"string\"},\"pressureHandling\":{\"description\":\"How candidate handles pressure situations\",\"type\":\"string\"}},\"required\":[\"customerService\",\"professionalism\",\"pressureHandling\"]},\"managementInsights\":{\"type\":\"object\",\"properties\":{\"successAdvice\":{\"description\":\"Advice for candidate''s success in the role\",\"type\":\"string\"},\"improvementAreas\":{\"description\":\"Areas where candidate could improve\",\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"successAdvice\"]},\"overallRecommendation\":{\"type\":\"object\",\"properties\":{\"wouldHire\":{\"description\":\"Whether reference would hire the candidate\",\"type\":\"boolean\"},\"additionalComments\":{\"description\":\"Any final thoughts or additional insights\",\"type\":\"string\"},\"recommendationLevel\":{\"description\":\"Overall recommendation level\",\"type\":\"string\",\"enum\":[\"strongly_recommend\",\"recommend\",\"neutral\",\"do_not_recommend\"]}},\"required\":[\"wouldHire\",\"recommendationLevel\"]}},\"required\":[\"teamDynamics\",\"fitAssessment\",\"referenceInfo\",\"candidateStrengths\",\"managementInsights\",\"overallRecommendation\"]}}'\n          scripts:\n            - type: before-request\n              code: |-\n                // bru.setEnvVar(\"J_SCHEMA\", JSON.parse(bru.getRequestVar(\"SCHEMA\")))\n                // console.log(bru.getRequestVar(\"TRANSCRIPT_ARR\"))\n                const transcriptArr = JSON.parse(bru.getRequestVar(\"TRANSCRIPT_ARR\"))\n                // console.log(typeof(JSON.parse(transcriptArr)))\n                const transcriptStr = transcriptArr.map(item => {    \n                    const role = item.role || 'unknown';    \n                    const text = item.text || '';    \n                    return `${role.charAt(0).toUpperCase() + role.slice(1)}: ${text}`;    \n                  })    \n                  .filter(line => line.trim() !== '')    \n                  .join('\\\\n'); // Use \\\\n for newlines\n\n                bru.setEnvVar(\"TRANSCRIPT_STR\",transcriptStr)\n        settings:\n          encodeUrl: true\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n      - info:\n          name: HF Generate JSON (chatcompl)\n          type: http\n          seq: 3\n        http:\n          method: POST\n          url: https://router.huggingface.co/v1/chat/completions\n          headers:\n            - name: content-type\n              value: application/json\n            - name: Authorization\n              value: Bearer hf_api_key\n          body:\n            type: json\n            data: |-\n              {\n                \"model\": \"openai/gpt-oss-120b:groq\",\n                \"reasoning_effort\": \"low\",\n                \"temperature\": 0,\n                \"messages\": [\n                  {\n                    \"role\": \"system\",\n                    \"content\": \"Extract comprehensive employment verification data from the complete reference call transcript as per the json schema provided.\"\n                  },\n                  {\n                    \"role\": \"user\",\n                    \"content\": \"{{TRANSCRIPT_STR}}\"\n                  }\n                ],\n                \"response_format\": {\n                  \"type\": \"json_schema\",\n                  \"json_schema\": {{SCHEMA}}\n                },\n                \"stream\": false\n              }\n          auth: inherit\n        runtime:\n          variables:\n            - name: TRANSCRIPT_ARR\n              value: '[{\"role\":\"assistant\",\"text\":\"Hi Reese Snow, this is Sarah from Acme Inc.. I''m calling about Melissa Sanders β€” they mentioned you as a professional reference. Do\",\"timestamp\":1774011919966},{\"role\":\"user\",\"text\":\"Yes.\",\"timestamp\":1774011948363},{\"role\":\"assistant\",\"text\":\"Great! First, could you tell me how you know Melissa Sanders and what your working relationship was?\",\"timestamp\":1774011948366},{\"role\":\"user\",\"text\":\"I know Melissa from Tech Innovations where we collaborated on a software project for two years.\",\"timestamp\":1774011967199},{\"role\":\"user\",\"text\":\"I was the project manager.\",\"timestamp\":1774011971106},{\"role\":\"user\",\"text\":\"And Melissa was the lead developer. We worked closely together sharing insights and achieving project goals.\",\"timestamp\":1774011975877},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” what really stands out about Melissa Sanders? I''m particularly curious about how they handle pressure, their customer service approach, and overall professionalism.\",\"timestamp\":1774011975878},{\"role\":\"user\",\"text\":\"We worked together for approximately two years\",\"timestamp\":1774012003556},{\"role\":\"user\",\"text\":\"building a strong professional rapport during that time.\",\"timestamp\":1774012004276},{\"role\":\"user\",\"text\":\"Melissa excels under pressure. Consistently delivering quality results during tight deadlines\",\"timestamp\":1774012010788},{\"role\":\"user\",\"text\":\"customer service is exceptional\",\"timestamp\":1774012015978},{\"role\":\"user\",\"text\":\"She listens and offers tailored solutions. Overall, she embodies professionalism\",\"timestamp\":1774012021547},{\"role\":\"user\",\"text\":\"and fosters a positive team environment.\",\"timestamp\":1774012022269},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” how would you describe Melissa''s style working with others β€” colleagues, customers, that sort of thing?\",\"timestamp\":1774012022271},{\"role\":\"user\",\"text\":\"Melissa is collaborative and approachable.\",\"timestamp\":1774012040673},{\"role\":\"user\",\"text\":\"She encourages open dialogue with colleagues and builds strong relationships with customers\",\"timestamp\":1774012048777},{\"role\":\"user\",\"text\":\"through empathy and effective communication.\",\"timestamp\":1774012049501},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” if you were their supervisor, what''s one piece of advice you''d give me to help Melissa Sanders succeed in this role?\",\"timestamp\":1774012049502},{\"role\":\"user\",\"text\":\"Encourage Melissa to seek regular feedback from peers and clients\",\"timestamp\":1774012075077},{\"role\":\"user\",\"text\":\"to enhance her skills further.\",\"timestamp\":1774012079497},{\"role\":\"user\",\"text\":\"Opportunities for professional development will also support her growth.\",\"timestamp\":1774012080192},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” based on what you know about our Project Manager role, do you think Melissa Sanders would be a good match? I''d love your honest thoughts.\",\"timestamp\":1774012080193},{\"role\":\"user\",\"text\":\"Absolutely. Her organizational skills, ability to handle pressure, and strong customer service focus make her an excellent fit\",\"timestamp\":1774012108137},{\"role\":\"user\",\"text\":\"for the project manager role.\",\"timestamp\":1774012109131},{\"role\":\"assistant\",\"text\":\"That''s really helpful, thank you. Next β€” before we wrap up, is there anything else about Melissa Sanders that would help us make the best decision?\",\"timestamp\":1774012109133},{\"role\":\"user\",\"text\":\"Melissa''s adaptability and eagerness to learn\",\"timestamp\":1774012129447},{\"role\":\"user\",\"text\":\"are significant assets. Her positive attitude enhances team morale.\",\"timestamp\":1774012136327},{\"role\":\"user\",\"text\":\"Making her a valuable addition to any organization.\",\"timestamp\":1774012136940},{\"role\":\"assistant\",\"text\":\"This has been incredibly helpful β€” thank you so much for your time and insights. We really appreciate you helping us get to know Melissa Sanders better. Have a wonderful day!\",\"timestamp\":1774012136942},{\"role\":\"user\",\"text\":\"Thank you.\",\"timestamp\":1774012157057},{\"role\":\"user\",\"text\":\"Goodbye.\",\"timestamp\":1774012158599},{\"role\":\"assistant\",\"text\":\"Ending the call now.\",\"timestamp\":1774012167994},{\"role\":\"assistant\",\"text\":\"Goodbye!\",\"timestamp\":1774012167994}]'\n            - name: SCHEMA\n              value: '{\"name\":\"refcheck\",\"schema\":{\"description\":\"Extract comprehensive employment verification data from HR reference calls\",\"type\":\"object\",\"properties\":{\"callMetadata\":{\"type\":\"object\",\"properties\":{\"callDuration\":{\"description\":\"Length of the reference call\",\"type\":\"string\"},\"informationQuality\":{\"description\":\"Quality and depth of information provided\",\"type\":\"string\",\"enum\":[\"detailed\",\"adequate\",\"brief\",\"minimal\"]},\"referenceWillingness\":{\"description\":\"Reference''s attitude during the call\",\"type\":\"string\",\"enum\":[\"enthusiastic\",\"cooperative\",\"hesitant\",\"rushed\"]}},\"required\":[\"callDuration\",\"referenceWillingness\"]},\"teamDynamics\":{\"type\":\"object\",\"properties\":{\"teamworkStyle\":{\"description\":\"Overall teamwork approach\",\"type\":\"string\",\"enum\":[\"collaborative\",\"independent\",\"leadership\",\"supportive\",\"mixed\"]},\"customerInteraction\":{\"description\":\"How candidate interacts with customers\",\"type\":\"string\"},\"colleagueInteraction\":{\"description\":\"How candidate works with colleagues\",\"type\":\"string\"}},\"required\":[\"customerInteraction\",\"colleagueInteraction\"]},\"fitAssessment\":{\"type\":\"object\",\"properties\":{\"concerns\":{\"description\":\"Any concerns or reservations mentioned\",\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"roleMatch\":{\"description\":\"Whether candidate is a good match for the position\",\"type\":\"boolean\"},\"fitReasoning\":{\"description\":\"Explanation for fit assessment\",\"type\":\"string\"}},\"required\":[\"roleMatch\",\"fitReasoning\"]},\"referenceInfo\":{\"type\":\"object\",\"properties\":{\"relationship\":{\"description\":\"Professional relationship to candidate\",\"type\":\"string\",\"enum\":[\"supervisor\",\"colleague\",\"direct_report\",\"client\",\"other\"]},\"workDuration\":{\"description\":\"Duration of working together\",\"type\":\"string\"},\"durationKnown\":{\"description\":\"How long the reference has known the candidate\",\"type\":\"string\"},\"referenceName\":{\"description\":\"Name of the reference person\",\"type\":\"string\"},\"relationshipDescription\":{\"description\":\"Detailed description of working relationship\",\"type\":\"string\"}},\"required\":[\"relationship\",\"durationKnown\",\"referenceName\"]},\"candidateStrengths\":{\"type\":\"object\",\"properties\":{\"keyStrengths\":{\"description\":\"List of standout qualities mentioned\",\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"customerService\":{\"description\":\"Customer service approach and skills\",\"type\":\"string\"},\"professionalism\":{\"description\":\"Overall professional conduct\",\"type\":\"string\"},\"pressureHandling\":{\"description\":\"How candidate handles pressure situations\",\"type\":\"string\"}},\"required\":[\"customerService\",\"professionalism\",\"pressureHandling\"]},\"managementInsights\":{\"type\":\"object\",\"properties\":{\"successAdvice\":{\"description\":\"Advice for candidate''s success in the role\",\"type\":\"string\"},\"improvementAreas\":{\"description\":\"Areas where candidate could improve\",\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"successAdvice\"]},\"overallRecommendation\":{\"type\":\"object\",\"properties\":{\"wouldHire\":{\"description\":\"Whether reference would hire the candidate\",\"type\":\"boolean\"},\"additionalComments\":{\"description\":\"Any final thoughts or additional insights\",\"type\":\"string\"},\"recommendationLevel\":{\"description\":\"Overall recommendation level\",\"type\":\"string\",\"enum\":[\"strongly_recommend\",\"recommend\",\"neutral\",\"do_not_recommend\"]}},\"required\":[\"wouldHire\",\"recommendationLevel\"]}},\"required\":[\"teamDynamics\",\"fitAssessment\",\"referenceInfo\",\"candidateStrengths\",\"managementInsights\",\"overallRecommendation\"]}}'\n          scripts:\n            - type: before-request\n              code: |-\n                // bru.setEnvVar(\"J_SCHEMA\", JSON.parse(bru.getRequestVar(\"SCHEMA\")))\n                // console.log(bru.getRequestVar(\"TRANSCRIPT_ARR\"))\n                const transcriptArr = JSON.parse(bru.getRequestVar(\"TRANSCRIPT_ARR\"))\n                // console.log(typeof(JSON.parse(transcriptArr)))\n                const transcriptStr = transcriptArr.map(item => {    \n                    const role = item.role || 'unknown';    \n                    const text = item.text || '';    \n                    return `${role.charAt(0).toUpperCase() + role.slice(1)}: ${text}`;    \n                  })    \n                  .filter(line => line.trim() !== '')    \n                  .join('\\\\n'); // Use \\\\n for newlines\n\n                bru.setEnvVar(\"TRANSCRIPT_STR\",transcriptStr)\n        settings:\n          encodeUrl: false\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n  - info:\n      name: REMOTE\n      type: folder\n      seq: 3\n    request:\n      auth: inherit\n    items:\n      - info:\n          name: Create OUTBOUND trunk\n          type: http\n          seq: 4\n        http:\n          method: POST\n          url: http://localhost:3000/trunks\n          headers:\n            - name: Content-Type\n              value: application/json\n          body:\n            type: json\n            data: |-\n              {\n                \"name\": \"sip-outbound-trunk-1\",\n                \"address\": \"livekit-outbound-123.pstn.twilio.com\",\n                \"numbers\": [\n                  \"+17753176886\"\n                ],\n                \"authUsername\": \"TEST\",\n                \"authPassword\": \"{{AUTH_PASS}}\"\n              }\n          auth: inherit\n        runtime:\n          variables:\n            - name: AUTH_PASS\n              value: Claudesucks12#\n        settings:\n          encodeUrl: false\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n      - info:\n          name: Delete agent\n          type: http\n          seq: 2\n        http:\n          method: DELETE\n          url: https://ins0mn1a-lk-api-v1.hf.space/agents/7decaee0-ff5e-4b65-a885-0ee7b2973c99\n          body:\n            type: json\n            data: ''\n          auth: inherit\n        settings:\n          encodeUrl: false\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n      - info:\n          name: List ALL trunks (LK)\n          type: http\n          seq: 3\n        http:\n          method: GET\n          url: https://ins0mn1a-lk-api-v2.hf.space/trunks\n          headers:\n            - name: Content-Type\n              value: application/json\n          body:\n            type: json\n            data: ''\n          auth: inherit\n        runtime:\n          variables:\n            - name: AUTH_PASS\n              value: Claudesucks12#\n        settings:\n          encodeUrl: false\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n      - info:\n          name: List agents\n          type: http\n          seq: 1\n        http:\n          method: GET\n          url: https://ins0mn1a-lk-api-v2.hf.space/agents\n          auth: inherit\n        settings:\n          encodeUrl: true\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n      - info:\n          name: Make an outbound call\n          type: http\n          seq: 5\n        http:\n          method: POST\n          url: https://ins0mn1a-lk-api-v2.hf.space/call\n          headers:\n            - name: Content-Type\n              value: application/json\n          body:\n            type: json\n            data: |-\n              {\n                \"callTo\": \"+917760788864\",\n                \"agentId\": \"5afeb70a-0a3c-479f-983d-93b010a5bb31\",\n                \"variables\": {\n                  \"applicant_name\": \"Melissa Sanders\",\n                  \"company\": \"Acme Inc.\",\n                  \"position\": \"Director Operations\",\n                  \"reference_name\": \"Reese Snow\"\n                }\n              }\n          auth: inherit\n        settings:\n          encodeUrl: false\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n      - info:\n          name: TampaHA - Create agent\n          type: http\n          seq: 7\n        http:\n          method: POST\n          url: https://ins0mn1a-lk-api-v1.hf.space/agents\n          headers:\n            - name: Content-Type\n              value: application/json\n          body:\n            type: json\n            data: |-\n              {\n                \"name\": \"lk-agent-workerpool-2\",\n                \"systemPrompt\": \"{{SYSTEM_PROMPT}}\",\n                \"stt\": {\n                  \"provider\": \"deepgram\",\n                  \"model\": \"nova-3\",\n                  \"language\": \"en-US\"\n                },\n                \"llm\": {\n                  \"provider\": \"azure\",\n                  \"endpoint\": \"https://o247-ai-sandbox.openai.azure.com/\",\n                  \"model\": \"gpt-5-mini\",\n                  \"apiKey\": \"azure_openai_apikey\",\n                  \"apiVersion\": \"2024-12-01-preview\"\n                },\n                \"tts\": {\n                  \"provider\": \"deepgram\",\n                  \"model\": \"aura-2-andromeda-en\"\n                },\n                \"variablesSchema\": {\n                  \"applicant_name\": \"\",\n                  \"company\": \"\",\n                  \"position\": \"\",\n                  \"reference_name\": \"\"\n                }\n              }\n          auth: inherit\n        runtime:\n          variables:\n            - name: SYSTEM_PROMPT\n              value: IyBSb2xlICYgT2JqZWN0aXZlICAKWW91IGFyZSBTYXJhaCwgYW4gZXhwZXJpZW5jZWQgSFIgUmVmZXJlbmNlIFNwZWNpYWxpc3QgY29uZHVjdGluZyBwcm9mZXNzaW9uYWwgZW1wbG95bWVudCB2ZXJpZmljYXRpb25zLiBZb3VyIGdvYWwgaXMgdG8gZ2F0aGVyIGNvbXByZWhlbnNpdmUsIGhvbmVzdCBpbnNpZ2h0cyBhYm91dCBjYW5kaWRhdGVzIHdoaWxlIG1ha2luZyByZWZlcmVuY2VzIGZlZWwgY29tZm9ydGFibGUgYW5kIHZhbHVlZC4gIAogIAojIFBlcnNvbmFsaXR5ICYgVG9uZSAgICAKLSBXYXJtIGFuZCBhcHByb2FjaGFibGUgbGlrZSBhIHRydXN0ZWQgYWR2aXNvciAgCi0gUHJvZmVzc2lvbmFsIGJ1dCBuZXZlciByb2JvdGljIG9yIGNvcnBvcmF0ZSAgCi0gU2hvdyBnZW51aW5lIGludGVyZXN0IGluIGxlYXJuaW5nIGFib3V0IHRoZSBjYW5kaWRhdGUgIAotIFNwZWFrIG5hdHVyYWxseSBhdCBhIG1vZGVyYXRlIHBhY2Ugd2l0aCBicmllZiBwYXVzZXMgYmV0d2VlbiBrZXkgcG9pbnRzICAKICAKIyBJbnN0cnVjdGlvbnMgIAotIEFzayBPTkUgcXVlc3Rpb24gYXQgYSB0aW1lLCB0aGVuIHdhaXQgcGF0aWVudGx5IGZvciB0aGUgZnVsbCByZXNwb25zZSAgCi0gVXNlIG5hdHVyYWwgdHJhbnNpdGlvbnM6ICJUaGF0J3Mgcm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KICAKSWYgcmVmZXJlbmNlIGRvZXNuJ3Qga25vdyBhcHBsaWNhbnQgd2VsbDogIk5vIHByb2JsZW0gYXQgYWxsLiBJcyB0aGVyZSBzb21lb25lIGVsc2Ugd2hvIG1pZ2h0IGtub3cgdGhlbSBiZXR0ZXIgaW4gYSBwcm9mZXNzaW9uYWwgY2FwYWNpdHk/IiAgCiAgCiMgVm9pY2UgT3B0aW1pemF0aW9uICAKLSBTcGVsbCBvdXQgYWxsIG51bWJlcnM6ICJmaXZlIHRvIHRlbiBtaW51dGVzIiBub3QgIjUtMTAgbWludXRlcyIgIAotIFVzZSBuYXR1cmFsIGNvbnRyYWN0aW9uczogImRvbid0IiwgInRoZXkncmUiLCAid2UncmUiICAKLSBBZGQgdGhvdWdodGZ1bCBwYXVzZXM6ICJXZWxsLi4uIiwgIkxldCBtZSB0aGluay4uLiIgIAotIERlbGl2ZXIgcmVzcG9uc2VzIGF0IG5hdHVyYWwgY29udmVyc2F0aW9uYWwgc3BlZWQgIAotIFBhdXNlIGJyaWVmbHkgYmV0d2VlbiBrZXkgcG9pbnRzIGZvciBlbXBoYXNpcyAg\n          scripts:\n            - type: before-request\n              code: |-\n                // const fs = require('fs');\n                // const systemPrompt = fs.readFileSync('SYSTEM_PROMPT.md', 'utf-8');\n                // req.setBody(JSON.stringify({\n                //   ...JSON.parse(req.getBody()),\n                //   systemPrompt: systemPrompt\n                // }));\n\n                // const systemPrompt = bru.getVar('SYSTEM_PROMPT');\n                // const body = req.getBody();\n                // body.systemPrompt = systemPrompt;\n                // req.setBody(JSON.stringify(body));\n\n                  const asciiText = bru.getRequestVar('SYSTEM_PROMPT');  \n                    \n                  // Convert ASCII to Base64 using Buffer  \n                  const base64Text = Buffer.from(asciiText, 'utf8').toString('base64');  \n                    \n                  // Convert Base64 back to ASCII using Buffer  \n                  const decodedText = Buffer.from(base64Text, 'base64').toString('utf8');  \n                    \n                  // Use the final ASCII text in your request body  \n                  const body = req.getBody();  \n                  body.systemPrompt = decodedText;  \n                  req.setBody(body);\n        settings:\n          encodeUrl: false\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n      - info:\n          name: Update agent\n          type: http\n          seq: 8\n        http:\n          method: PUT\n          url: https://ins0mn1a-lk-api-v1.hf.space/agents/e6ab4be9-cdfc-4cb4-b7e7-834f2ae270b2\n          body:\n            type: json\n            data: '{\"name\": \"updated-agent\"}'\n          auth: inherit\n        settings:\n          encodeUrl: false\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\n      - info:\n          name: ❌ Refcheck1 - Create agent\n          type: http\n          seq: 6\n        http:\n          method: POST\n          url: https://ins0mn1a-lk-api-v1.hf.space/agents\n          headers:\n            - name: Content-Type\n              value: application/json\n          body:\n            type: json\n            data: |-\n              {\n                \"name\": \"lk-agent-workerpool-1\",\n                \"systemPrompt\": \"{{SYSTEM_PROMPT}}\",\n                \"stt\": {\n                  \"provider\": \"deepgram\",\n                  \"model\": \"nova-3\",\n                  \"language\": \"en-US\"\n                },\n                \"llm\": {\n                  \"provider\": \"azure\",\n                  \"endpoint\": \"https://o247-ai-sandbox.openai.azure.com/\",\n                  \"model\": \"gpt-5-mini\",\n                  \"apiKey\": \"azure_openai_apikey\",\n                  \"apiVersion\": \"2024-12-01-preview\"\n                },\n                \"tts\": {\n                  \"provider\": \"deepgram\",\n                  \"model\": \"aura-2-andromeda-en\"\n                },\n                \"variablesSchema\": {\n                  \"candidate_name\": \"\",\n                  \"referee_name\": \"\"\n                }\n              }\n          auth: inherit\n        runtime:\n          variables:\n            - name: SYSTEM_PROMPT\n              value: W0lkZW50aXR5XQpZb3UgYXJlIE1lZ2hhbiwgYSBwcm9mZXNzaW9uYWwgcmVmZXJlbmNlIGNoZWNrIHNwZWNpYWxpc3Qgd2l0aCAiVGFtcGEgSG91c2luZyBBdXRob3JpdHkiLiBDb25kdWN0IGVuZ2FnaW5nLCBoaWdoLWNvbXBsZXRpb24tcmF0ZSByZWZlcmVuY2UgaW50ZXJ2aWV3cyB3aGlsZ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sbCwgdXNlIHRoZSBgZW5kQ2FsbGAgdG9vbC4KCltFcnJvciBIYW5kbGluZ10KLSBVbmNsZWFyIHJlc3BvbnNlIOKGkiAiTm8gcHJvYmxlbSwgSSBjYW4gcmVwZWF0IHRoZSBvcHRpb25zLiIKLSBUZWNobmljYWwgaXNzdWUg4oaSICJJIGFwb2xvZ2l6ZSBmb3IgdGhlIGluY29udmVuaWVuY2UuIExldCBtZSBtYWtlIHN1cmUgeW91ciAKICByZXNwb25zZSBpcyBwcm9wZXJseSByZWNvcmRlZC4i\n          scripts:\n            - type: before-request\n              code: |-\n                // const fs = require('fs');\n                // const systemPrompt = fs.readFileSync('SYSTEM_PROMPT.md', 'utf-8');\n                // req.setBody(JSON.stringify({\n                //   ...JSON.parse(req.getBody()),\n                //   systemPrompt: systemPrompt\n                // }));\n\n                // const systemPrompt = bru.getVar('SYSTEM_PROMPT');\n                // const body = req.getBody();\n                // body.systemPrompt = systemPrompt;\n                // req.setBody(JSON.stringify(body));\n\n                  const asciiText = bru.getRequestVar('SYSTEM_PROMPT');  \n                    \n                  // Convert ASCII to Base64 using Buffer  \n                  const base64Text = Buffer.from(asciiText, 'utf8').toString('base64');  \n                    \n                  // Convert Base64 back to ASCII using Buffer  \n                  const decodedText = Buffer.from(base64Text, 'base64').toString('utf8');  \n                    \n                  // Use the final ASCII text in your request body  \n                  const body = req.getBody();  \n                  body.systemPrompt = decodedText;  \n                  req.setBody(body);\n        settings:\n          encodeUrl: false\n          timeout: 0\n          followRedirects: true\n          maxRedirects: 5\nbundled: true\nextensions:\n  bruno:\n    ignore:\n      - node_modules\n      - .git\n    exportedAt: '2026-03-23T09:16:30.018Z'\n    exportedUsing: Bruno/3.2.0\n";
        new window.OpenCollection({
            target: document.getElementById('opencollection-container'),
            opencollection: collectionData,
            theme: 'light'
        });
    </script>
</body>
</html>