diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3efa0e0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI Pipeline + +on: + pull_request: + branches: + - dev # Run tests only on PRs to the "dev" branch + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 # Latest stable version + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 # Ensure compatibility with Newman + + - name: Install Newman + run: npm install -g newman + + - name: Run Postman Tests + run: | + newman run postman/collection.json \ + --reporters cli,junit \ + --reporter-junit-export test-results.xml + + - name: Upload Test Results + uses: actions/upload-artifact@v4 + with: + name: postman-test-results + path: test-results.xml diff --git a/postman/collection.json b/postman/collection.json new file mode 100644 index 0000000..cdf30da --- /dev/null +++ b/postman/collection.json @@ -0,0 +1,7610 @@ +{ + "collection": { + "_": { + "postman_id": "c47fa633-7eff-4bdb-ad71-fdebcc82a066", + "exporter_id": "42984000" + }, + "item": [ + { + "id": "cbddd6b9-ae36-4f0a-a5df-a28711675f01", + "name": "Validate that the agent reponds", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "telex-integration" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "GET" + }, + "response": [ + { + "_": { + "postman_previewlanguage": "json" + }, + "id": "b2901add-a201-464d-9a0c-2f10fcaa62e5", + "name": "Validate that the agent reponds", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "telex-integration" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "GET" + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 20:04:59 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "f36d26cc-4848-4020" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ab2d9fddb1c994-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "\"{\\\"data\\\":{\\\"date\\\":{\\\"created_at\\\":\\\"2025-03-10\\\",\\\"updated_at\\\":\\\"2025-03-10\\\"},\\\"descriptions\\\":{\\\"app_description\\\":\\\"Blogger Agent helps users generate high-quality blog content effortlessly using AI, providing structure, creativity, and SEO optimization.\\\",\\\"app_logo\\\":\\\"https://res.cloudinary.com/dlu45noef/image/upload/e_gen_remove:prompt_(background);multiple_true/v1742882213/blogger-agent_lbfdiz.jpg\\\",\\\"app_name\\\":\\\"AI Blogger Agent\\\",\\\"app_url\\\":\\\"https://telex-blogger-agent-docs.onrender.com\\\",\\\"background_color\\\":\\\"#2ecc71\\\"},\\\"integration_category\\\":\\\"AI \\\\u0026 Machine Learning\\\",\\\"integration_type\\\":\\\"modifier\\\",\\\"is_active\\\":true,\\\"key_features\\\":[\\\"Provides a chat-based Interaction with the AI\\\",\\\"Generates high-quality blog content using AI in seconds.\\\",\\\"Allows customization of tone and writing style.\\\",\\\"Supports keyword-based content generation for SEO optimization.\\\",\\\"Can create full articles, outlines, or summaries based on user input.\\\"],\\\"permissions\\\":{\\\"blogger_agent\\\":{\\\"always_online\\\":true,\\\"display_name\\\":\\\"Blogger Agent\\\"}},\\\"settings\\\":[{\\\"label\\\":\\\"company_name\\\",\\\"type\\\":\\\"text\\\",\\\"description\\\":\\\"Provide the name of the company/brand that the blog content should align with\\\",\\\"default\\\":\\\"\\\",\\\"required\\\":true},{\\\"label\\\":\\\"company_overview\\\",\\\"type\\\":\\\"text\\\",\\\"description\\\":\\\"Provide a short overview of the company, its mission, or its core services to tailor the blog\\\\u0027s content\\\",\\\"default\\\":\\\"\\\",\\\"required\\\":false},{\\\"label\\\":\\\"company_website\\\",\\\"type\\\":\\\"text\\\",\\\"description\\\":\\\"Provide the company\\\\u2019s website URL to be included in the blog post conclusion.\\\",\\\"default\\\":\\\"https://www.technology-innovators.com\\\",\\\"required\\\":false},{\\\"label\\\":\\\"industry\\\",\\\"type\\\":\\\"text\\\",\\\"description\\\":\\\"Provide the company\\\\u2019s industry.\\\",\\\"default\\\":\\\"\\\",\\\"required\\\":false},{\\\"label\\\":\\\"target_audience\\\",\\\"type\\\":\\\"text\\\",\\\"description\\\":\\\"Provide the company\\\\u2019s target audience.\\\",\\\"default\\\":\\\"\\\",\\\"required\\\":false},{\\\"label\\\":\\\"tone\\\",\\\"type\\\":\\\"dropdown\\\",\\\"description\\\":\\\"Choose the tone for the blog content.\\\",\\\"options\\\":[\\\"Professional\\\",\\\"Casual\\\",\\\"Persuasive\\\",\\\"Informative\\\"],\\\"default\\\":\\\"Informative\\\",\\\"required\\\":true},{\\\"label\\\":\\\"blog_length\\\",\\\"type\\\":\\\"dropdown\\\",\\\"description\\\":\\\"Select the preferred blog length.\\\",\\\"options\\\":[\\\"short\\\",\\\"medium\\\",\\\"long\\\"],\\\"default\\\":\\\"medium\\\",\\\"required\\\":true},{\\\"label\\\":\\\"format\\\",\\\"type\\\":\\\"dropdown\\\",\\\"description\\\":\\\"Choose the format for the blog output.\\\",\\\"options\\\":[\\\"Full Article\\\",\\\"Outline\\\",\\\"Summary\\\"],\\\"default\\\":\\\"Full Article\\\",\\\"required\\\":false},{\\\"label\\\":\\\"blog_generation_interval\\\",\\\"type\\\":\\\"dropdown\\\",\\\"description\\\":\\\"Select the preferred blog ideas recommendation interval\\\",\\\"options\\\":[\\\"None\\\",\\\"Every 12 hours \\\",\\\"Every 24 hours\\\"],\\\"default\\\":\\\"None\\\",\\\"required\\\":true}],\\\"target_url\\\":\\\"https://telex-blogger-agent-qdp4.onrender.com/api/v1/blogger-agent/generate-blog\\\"}}\"", + "cookie": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "7cf34f84-1cc9-43d9-bb7a-8af0bc6dba8f", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Pre-request script for setting headers and preparing requests\r", + "\r", + "// Set common headers for all requests\r", + "pm.request.headers.add({\r", + " key: 'Content-Type',\r", + " value: 'application/json'\r", + "});\r", + "\r", + "\r", + "// For POST/PUT requests, you might want to add additional headers or validations\r", + "if (pm.request.method === 'GET' || pm.request.method === 'GET') {\r", + " pm.request.headers.add({\r", + " key: 'Accept',\r", + " value: 'application/json'\r", + " });\r", + " \r", + " // Add timestamp header for request tracking\r", + " pm.request.headers.add({\r", + " key: 'X-Request-Timestamp',\r", + " value: new Date().toISOString()\r", + " });\r", + "}\r", + "\r", + "// Log the headers being sent (for debugging)\r", + "console.log('Request headers:', pm.request.headers.toObject());\r", + "\r", + "// You can also set environment variables for use in tests\r", + "pm.environment.set('requestTimestamp', new Date().getTime());\r", + "\r", + "// If you need to modify the request body, you can do it here\r", + "if (pm.request.body && pm.request.body.raw) {\r", + " try {\r", + " let bodyData = JSON.parse(pm.request.body.raw);\r", + " \r", + " // Example: Add a test flag to all requests\r", + " bodyData.testRequest = true;\r", + " \r", + " // Update the request body with modified data\r", + " pm.request.body.raw = JSON.stringify(bodyData);\r", + " } catch (e) {\r", + " console.log('Error parsing request body:', e);\r", + " }\r", + "}" + ], + "_lastExecutionId": "e144b0fc-ab15-426c-9436-49524d14dc69" + } + }, + { + "listen": "test", + "script": { + "id": "9506aaf8-4ec1-46dc-81b7-7bd71786883f", + "type": "text/javascript", + "packages": {}, + "exec": [ + "pm.test(\"Response status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "\r", + "\r", + "pm.test(\"Response content type is 'application/json'\", function () {\r", + " pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\r", + "});\r", + "\r", + "\r", + "pm.test(\"Response time is less than 1000ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(1000);\r", + "});\r", + "" + ], + "_lastExecutionId": "5c56edcc-90c3-41df-9d69-7e1e06322dcf" + } + } + ] + }, + { + "id": "cec64707-c37f-45b4-a065-b24ba57ffc3c", + "name": "Validate error status for malformed Json request", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI in assertive learning \",\r\n \"channel_id\": \"0195f1ff-5ce8-7898-b49f-48e8cf621fe6\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"Hng 12\",\r\n \"type\": \"Tech education\",\r\n \"description\": \"we are the freedom fighters \",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n ", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "json" + }, + "id": "59232c05-45ca-4641-b3e9-343b0127bffd", + "name": "Validate error status for malformed Json request", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI in assertive learning \",\r\n \"channel_id\": \"0195f1ff-5ce8-7898-b49f-48e8cf621fe6\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"Hng 12\",\r\n \"type\": \"Tech education\",\r\n \"description\": \"we are the freedom fighters \",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n ", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "Bad Request", + "code": 400, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 20:42:18 GMT" + }, + { + "key": "Content-Type", + "value": "application/problem+json; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "rndr-id", + "value": "86295ef1-027e-4be5" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ab64469ea95944-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "{\n \"type\": \"https://tools.ietf.org/html/rfc9110#section-15.5.1\",\n \"title\": \"One or more validation errors occurred.\",\n \"status\": 400,\n \"errors\": {\n \"blogDto\": [\n \"The blogDto field is required.\"\n ],\n \"$.settings[1]\": [\n \"Expected start of a property name or value, but instead reached end of data. Path: $.settings[1] | LineNumber: 12 | BytePositionInLine: 3.\"\n ]\n },\n \"traceId\": \"00-a7a8fec50f990afbf0035ca4f877f643-5f2e6762ce973af7-00\"\n}", + "cookie": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "5c4167d2-8a2d-4937-b1f5-956cbcb807e9", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// For POST/PUT requests, you might want to add additional headers or validations\r", + "if (pm.request.method === 'POST' || pm.request.method === 'POST') {\r", + " pm.request.headers.add({\r", + " key: 'Accept',\r", + " value: 'plain/text'\r", + " });\r", + " \r", + " // Add timestamp header for request tracking\r", + " pm.request.headers.add({\r", + " key: 'X-Request-Timestamp',\r", + " value: new Date().toISOString()\r", + " });\r", + "}\r", + "\r", + "\r", + "" + ], + "_lastExecutionId": "397a0ca0-f138-4c93-b70b-d8c24a4bf041" + } + }, + { + "listen": "test", + "script": { + "id": "fe358dae-6fe8-45ec-9c90-9de84859d800", + "type": "text/javascript", + "packages": {}, + "exec": [ + "pm.response.to.have.status(400);\r", + "\r", + "pm.test(\"Response time is less than 1000ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(1000);\r", + "});\r", + "" + ], + "_lastExecutionId": "cf61b354-a55b-4052-94d8-b164e43b593b" + } + } + ] + }, + { + "id": "903f1903-a84a-48a6-9f05-0a870a27b54e", + "name": "Verify the API accepts and processes valid POST data", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "88aeb0c2-ac78-4f68-a270-902d9f5169ef", + "name": "Validate error status for malformed Json request Copy", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 20:42:00 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "50a16b49-baf7-4327" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ab63d8396981c3-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "Generate a blog post on The Impact of AI on Content Writing", + "cookie": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "898a4488-cfc8-4aab-988c-ddf8114ffbae", + "type": "text/javascript", + "packages": {}, + "exec": [ + "\r", + "\r", + "\r", + "// For POST/PUT requests, you might want to add additional headers or validations\r", + "if (pm.request.method === 'POST' || pm.request.method === 'POST') {\r", + " pm.request.headers.add({\r", + " key: 'Accept',\r", + " value: 'plain/text'\r", + " });\r", + " \r", + " // Add timestamp header for request tracking\r", + " pm.request.headers.add({\r", + " key: 'X-Request-Timestamp',\r", + " value: new Date().toISOString()\r", + " });\r", + "}\r", + "\r", + "\r", + "" + ], + "_lastExecutionId": "dc96b51f-d6ad-476a-9a8a-abcb113792d6" + } + }, + { + "listen": "test", + "script": { + "id": "8f53b7a4-77f8-4f7d-ad14-f5f3dd9237c8", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the status code\r", + "pm.response.to.have.status(200);\r", + "// Validating the response body\r", + "pm.test(\"Validate response body\", function () {\r", + " pm.response.to.have.body(\"Generate a blog post on The Impact of AI on Content Writing\");\r", + "});\r", + "\r", + "// Validating the response time\r", + "pm.test(\"Response time is less than 1000ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(1000);\r", + "});\r", + "" + ], + "_lastExecutionId": "9302b474-37d9-454f-af7d-1fc0f9c6ab7f" + } + } + ] + }, + { + "id": "09106092-7d20-4672-8580-19118d162cf9", + "name": "Validate Successful PUT Request for Updating Content", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "e7467c60-9beb-43cd-bf71-2f61accf6cc7", + "name": "Validate error status for malformed Json request Copy", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 20:42:00 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "50a16b49-baf7-4327" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ab63d8396981c3-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "Generate a blog post on The Impact of AI on Content Writing", + "cookie": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "c5a8e06f-c815-4425-bd07-1aaf7d8a6457", + "type": "text/javascript", + "packages": {}, + "exec": [ + "\r", + "\r", + "\r", + "// For POST/PUT requests, you might want to add additional headers or validations\r", + "if (pm.request.method === 'POST' || pm.request.method === 'POST') {\r", + " pm.request.headers.add({\r", + " key: 'Accept',\r", + " value: 'plain/text'\r", + " });\r", + " \r", + " // Add timestamp header for request tracking\r", + " pm.request.headers.add({\r", + " key: 'X-Request-Timestamp',\r", + " value: new Date().toISOString()\r", + " });\r", + "}\r", + "\r", + "\r", + "" + ], + "_lastExecutionId": "ad23d30c-b277-4cfb-b314-fbcae4e97c83" + } + }, + { + "listen": "test", + "script": { + "id": "e9acb494-a9e6-48e8-8177-7d6e0b79acf8", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the status code\r", + "pm.response.to.have.status(200);\r", + "// Validating the response body\r", + "pm.test(\"Validate response body\", function () {\r", + " pm.response.to.have.body(\"Generate a blog post on The Impact of AI on Content Writing\");\r", + "});\r", + "\r", + "// Validating the response time\r", + "pm.test(\"Response time is less than 1000ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(1000);\r", + "});\r", + "" + ], + "_lastExecutionId": "55765155-8417-4e49-af6b-db7856cdbda6" + } + } + ] + }, + { + "id": "b6d2ff2f-baa9-4f3b-bde9-d1e20a8216a9", + "name": "Validate an error when Missing Required Fields", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on the usefulness of Cybersecurity\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "c12d1956-003f-474a-88f5-64f9d080a1df", + "name": "Validate Successful PUT Request for Updating Content Copy", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on the usefulness of Cybersecurity\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "Internal Server Error", + "code": 500, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 21:16:19 GMT" + }, + { + "key": "Content-Length", + "value": "0" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "rndr-id", + "value": "115ee2b6-d459-4ae4" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ab961ae945c933-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": null, + "cookie": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "a7461044-c755-49b8-8580-938a7e4f0358", + "type": "text/javascript", + "packages": {}, + "exec": [ + "\r", + "\r", + "\r", + "// For POST/PUT requests, you might want to add additional headers or validations\r", + "if (pm.request.method === 'POST' || pm.request.method === 'POST') {\r", + " pm.request.headers.add({\r", + " key: 'Accept',\r", + " value: 'plain/text'\r", + " });\r", + " \r", + " // Add timestamp header for request tracking\r", + " pm.request.headers.add({\r", + " key: 'X-Request-Timestamp',\r", + " value: new Date().toISOString()\r", + " });\r", + "}\r", + "\r", + "\r", + "" + ], + "_lastExecutionId": "33aeef2f-0c50-4e60-8d06-bb8e8b5ecfb8" + } + }, + { + "listen": "test", + "script": { + "id": "683b608e-64d4-4d5f-a5f6-836dbaec2145", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the status code\r", + "pm.response.to.have.status(200);\r", + "// Validating the response body\r", + "pm.test(\"Validate response body\", function () {\r", + " pm.response.to.have.body(\"Generate a blog post on the usefulness of Cybersecurity\");\r", + "});\r", + "\r", + "// Validating the response time\r", + "pm.test(\"Response time is less than 1000ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(1000);\r", + "});\r", + "" + ], + "_lastExecutionId": "82b360bf-062c-4055-88f4-88b9923b49bf" + } + } + ] + }, + { + "id": "10d30ec6-3336-41ff-8bf7-a641582f8027", + "name": "Validate response body", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "04a0b139-c563-4ae6-a355-9bdc73c6b977", + "name": "Validate response body", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 21:35:49 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "736ce15b-ff8f-47a6" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92abb2aa8e0405c3-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "Generate a blog post on The Impact of AI on Content Writing", + "cookie": [] + } + ], + "event": [ + { + "listen": "test", + "script": { + "id": "49a659a0-c72f-434c-a82d-9fdbd60745f2", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the response body\r", + "pm.test(\"Response body should not be empty\", function () {\r", + " pm.expect(pm.response.text()).not.eql(\"\");\r", + "});" + ], + "_lastExecutionId": "b7f31737-2227-4c74-9b72-9d0de09dbf0f" + } + } + ] + }, + { + "id": "4579fe9a-2a18-4486-95a5-36968af630b1", + "name": "Validate response time", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "ed92c17c-97f3-49de-a865-2170a3dd4266", + "name": "Validate response time", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 21:37:30 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "b9603fe4-f449-44ba" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92abb5220e63d6a9-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "Generate a blog post on The Impact of AI on Content Writing", + "cookie": [] + } + ], + "event": [ + { + "listen": "test", + "script": { + "id": "dc8fa591-f6e1-4da9-9480-7c93922c17cc", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the response body\r", + "pm.test(\"Response body should not be empty\", function () {\r", + " pm.expect(pm.response.text()).not.eql(\"\");\r", + "});\r", + "pm.test(\"Response time is less than 500ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(500);\r", + "});\r", + "" + ], + "_lastExecutionId": "3a44a172-37c0-455b-a6cb-7753d824ee43" + } + } + ] + }, + { + "id": "83dc779c-b685-4cf8-9f1b-56a40ffedcd7", + "name": "Validate required org id and channel id", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "e2e985f2-5945-49c8-83f5-a3fc5828ab6a", + "name": "Validate required org id and channel id", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 21:43:59 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "9839cd09-b395-402b" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92abbea52d4df493-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "Generate a blog post on The Impact of AI on Content Writing", + "cookie": [] + } + ], + "event": [ + { + "listen": "test", + "script": { + "id": "916642df-994a-49ac-887a-7082b62a7f69", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the response body\r", + "pm.test(\"Response body should not be empty\", function () {\r", + " pm.expect(pm.response.text()).not.eql(\"\");\r", + "});\r", + "pm.test(\"Response time is less than 500ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(500);\r", + "});\r", + "" + ], + "_lastExecutionId": "5e77306b-7529-4d17-8e16-34863b5faab0" + } + }, + { + "listen": "prerequest", + "script": { + "id": "28404237-f853-4177-9e7e-b04a35530b68", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Required fields validation\r", + "function validateRequiredFields() {\r", + " let errors = [];\r", + " \r", + " // Check for org_id in either params or body\r", + " const orgId = pm.request.url.query.get('org_id') || \r", + " (pm.request.body && pm.request.body.raw && JSON.parse(pm.request.body.raw).org_id);\r", + " \r", + " if (!orgId) {\r", + " errors.push(\"org_id is required (can be in query params or request body)\");\r", + " }\r", + " \r", + " // Check for channel_id in either params or body\r", + " const channelId = pm.request.url.query.get('channel_id') || \r", + " (pm.request.body && pm.request.body.raw && JSON.parse(pm.request.body.raw).channel_id);\r", + " \r", + " if (!channelId) {\r", + " errors.push(\"channel_id is required (can be in query params or request body)\");\r", + " }\r", + " \r", + " return errors;\r", + "}\r", + "\r", + "// Main execution\r", + "try {\r", + " const validationErrors = validateRequiredFields();\r", + " \r", + " if (validationErrors.length > 0) {\r", + " // For collection-level scripts, we can't prevent the request from sending\r", + " const errorMessage = `Missing required parameters:\\n- ${validationErrors.join(\"\\n- \")}`;\r", + " \r", + " if (isCollectionLevel) {\r", + " console.error(errorMessage);\r", + " pm.environment.set(\"PREREQUEST_VALIDATION_FAILED\", true);\r", + " pm.environment.set(\"VALIDATION_ERRORS\", errorMessage);\r", + " } else {\r", + " // For request-level scripts, we can actually prevent the request\r", + " throw new Error(errorMessage);\r", + " }\r", + " } else {\r", + " pm.environment.unset(\"PREREQUEST_VALIDATION_FAILED\");\r", + " pm.environment.unset(\"VALIDATION_ERRORS\");\r", + " \r", + " // Set default headers if not present\r", + " if (!pm.request.headers.get('Content-Type')) {\r", + " pm.request.headers.add({\r", + " key: 'Content-Type',\r", + " value: 'application/json'\r", + " });\r", + " }\r", + " }\r", + "} catch (error) {\r", + " console.error(\"Pre-request script error:\", error.message);\r", + " throw error; // This will prevent the request from executing\r", + "}" + ], + "_lastExecutionId": "fd2f2f54-9b13-4ba9-9ee4-559278dd99e7" + } + } + ] + } + ], + "event": [], + "variable": [], + "info": { + "_postman_id": "c47fa633-7eff-4bdb-ad71-fdebcc82a066", + "name": "Blogger agent", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + } + }, + "environment": { + "id": "58ad7e62-85d2-49c4-ace3-c94cc8f4955c", + "values": [ + { + "type": "any", + "value": 1743723644031, + "key": "requestTimestamp" + } + ] + }, + "globals": { + "id": "c30b4980-b17b-489b-9d28-2d50044e66f6", + "values": [] + }, + "run": { + "stats": { + "iterations": { + "total": 1, + "pending": 0, + "failed": 0 + }, + "items": { + "total": 8, + "pending": 0, + "failed": 0 + }, + "scripts": { + "total": 14, + "pending": 0, + "failed": 0 + }, + "prerequests": { + "total": 8, + "pending": 0, + "failed": 0 + }, + "requests": { + "total": 8, + "pending": 0, + "failed": 0 + }, + "tests": { + "total": 8, + "pending": 0, + "failed": 0 + }, + "assertions": { + "total": 15, + "pending": 0, + "failed": 0 + }, + "testScripts": { + "total": 8, + "pending": 0, + "failed": 0 + }, + "prerequestScripts": { + "total": 6, + "pending": 0, + "failed": 0 + } + }, + "timings": { + "responseAverage": 410.125, + "responseMin": 312, + "responseMax": 989, + "responseSd": 219.29571216738367, + "dnsAverage": 2.0869000000002416, + "dnsMin": 2.0869000000002416, + "dnsMax": 2.0869000000002416, + "dnsSd": 0, + "firstByteAverage": 360.38343750000007, + "firstByteMin": 309.172, + "firstByteMax": 604.7619999999997, + "firstByteSd": 93.55714881134055, + "started": 1743723643991, + "completed": 1743723647965 + }, + "executions": [ + { + "cursor": { + "position": 0, + "iteration": 0, + "length": 8, + "cycles": 1, + "empty": false, + "eof": false, + "bof": true, + "cr": false, + "ref": "6924d0cb-e6ae-4435-a107-3c54e1c50d78", + "httpRequestId": "844f6a59-4935-4307-8c44-e81d87affced" + }, + "item": { + "id": "cbddd6b9-ae36-4f0a-a5df-a28711675f01", + "name": "Validate that the agent reponds", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "telex-integration" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "GET" + }, + "response": [ + { + "_": { + "postman_previewlanguage": "json" + }, + "id": "b2901add-a201-464d-9a0c-2f10fcaa62e5", + "name": "Validate that the agent reponds", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "telex-integration" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "GET" + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 20:04:59 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "f36d26cc-4848-4020" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ab2d9fddb1c994-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "\"{\\\"data\\\":{\\\"date\\\":{\\\"created_at\\\":\\\"2025-03-10\\\",\\\"updated_at\\\":\\\"2025-03-10\\\"},\\\"descriptions\\\":{\\\"app_description\\\":\\\"Blogger Agent helps users generate high-quality blog content effortlessly using AI, providing structure, creativity, and SEO optimization.\\\",\\\"app_logo\\\":\\\"https://res.cloudinary.com/dlu45noef/image/upload/e_gen_remove:prompt_(background);multiple_true/v1742882213/blogger-agent_lbfdiz.jpg\\\",\\\"app_name\\\":\\\"AI Blogger Agent\\\",\\\"app_url\\\":\\\"https://telex-blogger-agent-docs.onrender.com\\\",\\\"background_color\\\":\\\"#2ecc71\\\"},\\\"integration_category\\\":\\\"AI \\\\u0026 Machine Learning\\\",\\\"integration_type\\\":\\\"modifier\\\",\\\"is_active\\\":true,\\\"key_features\\\":[\\\"Provides a chat-based Interaction with the AI\\\",\\\"Generates high-quality blog content using AI in seconds.\\\",\\\"Allows customization of tone and writing style.\\\",\\\"Supports keyword-based content generation for SEO optimization.\\\",\\\"Can create full articles, outlines, or summaries based on user input.\\\"],\\\"permissions\\\":{\\\"blogger_agent\\\":{\\\"always_online\\\":true,\\\"display_name\\\":\\\"Blogger Agent\\\"}},\\\"settings\\\":[{\\\"label\\\":\\\"company_name\\\",\\\"type\\\":\\\"text\\\",\\\"description\\\":\\\"Provide the name of the company/brand that the blog content should align with\\\",\\\"default\\\":\\\"\\\",\\\"required\\\":true},{\\\"label\\\":\\\"company_overview\\\",\\\"type\\\":\\\"text\\\",\\\"description\\\":\\\"Provide a short overview of the company, its mission, or its core services to tailor the blog\\\\u0027s content\\\",\\\"default\\\":\\\"\\\",\\\"required\\\":false},{\\\"label\\\":\\\"company_website\\\",\\\"type\\\":\\\"text\\\",\\\"description\\\":\\\"Provide the company\\\\u2019s website URL to be included in the blog post conclusion.\\\",\\\"default\\\":\\\"https://www.technology-innovators.com\\\",\\\"required\\\":false},{\\\"label\\\":\\\"industry\\\",\\\"type\\\":\\\"text\\\",\\\"description\\\":\\\"Provide the company\\\\u2019s industry.\\\",\\\"default\\\":\\\"\\\",\\\"required\\\":false},{\\\"label\\\":\\\"target_audience\\\",\\\"type\\\":\\\"text\\\",\\\"description\\\":\\\"Provide the company\\\\u2019s target audience.\\\",\\\"default\\\":\\\"\\\",\\\"required\\\":false},{\\\"label\\\":\\\"tone\\\",\\\"type\\\":\\\"dropdown\\\",\\\"description\\\":\\\"Choose the tone for the blog content.\\\",\\\"options\\\":[\\\"Professional\\\",\\\"Casual\\\",\\\"Persuasive\\\",\\\"Informative\\\"],\\\"default\\\":\\\"Informative\\\",\\\"required\\\":true},{\\\"label\\\":\\\"blog_length\\\",\\\"type\\\":\\\"dropdown\\\",\\\"description\\\":\\\"Select the preferred blog length.\\\",\\\"options\\\":[\\\"short\\\",\\\"medium\\\",\\\"long\\\"],\\\"default\\\":\\\"medium\\\",\\\"required\\\":true},{\\\"label\\\":\\\"format\\\",\\\"type\\\":\\\"dropdown\\\",\\\"description\\\":\\\"Choose the format for the blog output.\\\",\\\"options\\\":[\\\"Full Article\\\",\\\"Outline\\\",\\\"Summary\\\"],\\\"default\\\":\\\"Full Article\\\",\\\"required\\\":false},{\\\"label\\\":\\\"blog_generation_interval\\\",\\\"type\\\":\\\"dropdown\\\",\\\"description\\\":\\\"Select the preferred blog ideas recommendation interval\\\",\\\"options\\\":[\\\"None\\\",\\\"Every 12 hours \\\",\\\"Every 24 hours\\\"],\\\"default\\\":\\\"None\\\",\\\"required\\\":true}],\\\"target_url\\\":\\\"https://telex-blogger-agent-qdp4.onrender.com/api/v1/blogger-agent/generate-blog\\\"}}\"", + "cookie": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "7cf34f84-1cc9-43d9-bb7a-8af0bc6dba8f", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Pre-request script for setting headers and preparing requests\r", + "\r", + "// Set common headers for all requests\r", + "pm.request.headers.add({\r", + " key: 'Content-Type',\r", + " value: 'application/json'\r", + "});\r", + "\r", + "\r", + "// For POST/PUT requests, you might want to add additional headers or validations\r", + "if (pm.request.method === 'GET' || pm.request.method === 'GET') {\r", + " pm.request.headers.add({\r", + " key: 'Accept',\r", + " value: 'application/json'\r", + " });\r", + " \r", + " // Add timestamp header for request tracking\r", + " pm.request.headers.add({\r", + " key: 'X-Request-Timestamp',\r", + " value: new Date().toISOString()\r", + " });\r", + "}\r", + "\r", + "// Log the headers being sent (for debugging)\r", + "console.log('Request headers:', pm.request.headers.toObject());\r", + "\r", + "// You can also set environment variables for use in tests\r", + "pm.environment.set('requestTimestamp', new Date().getTime());\r", + "\r", + "// If you need to modify the request body, you can do it here\r", + "if (pm.request.body && pm.request.body.raw) {\r", + " try {\r", + " let bodyData = JSON.parse(pm.request.body.raw);\r", + " \r", + " // Example: Add a test flag to all requests\r", + " bodyData.testRequest = true;\r", + " \r", + " // Update the request body with modified data\r", + " pm.request.body.raw = JSON.stringify(bodyData);\r", + " } catch (e) {\r", + " console.log('Error parsing request body:', e);\r", + " }\r", + "}" + ], + "_lastExecutionId": "e144b0fc-ab15-426c-9436-49524d14dc69" + } + }, + { + "listen": "test", + "script": { + "id": "9506aaf8-4ec1-46dc-81b7-7bd71786883f", + "type": "text/javascript", + "packages": {}, + "exec": [ + "pm.test(\"Response status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "\r", + "\r", + "pm.test(\"Response content type is 'application/json'\", function () {\r", + " pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\r", + "});\r", + "\r", + "\r", + "pm.test(\"Response time is less than 1000ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(1000);\r", + "});\r", + "" + ], + "_lastExecutionId": "5c56edcc-90c3-41df-9d69-7e1e06322dcf" + } + } + ] + }, + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "telex-integration" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + }, + { + "key": "X-Request-Timestamp", + "value": "2025-04-03T23:40:44.029Z" + }, + { + "key": "User-Agent", + "value": "PostmanRuntime/7.39.1", + "system": true + }, + { + "key": "Cache-Control", + "value": "no-cache", + "system": true + }, + { + "key": "Postman-Token", + "value": "2c8bfaf6-4bfa-46ef-86a9-6315f6baca8d", + "system": true + }, + { + "key": "Host", + "value": "telex-blogger-agent-qdp4.onrender.com", + "system": true + }, + { + "key": "Accept-Encoding", + "value": "gzip, deflate, br", + "system": true + }, + { + "key": "Connection", + "value": "keep-alive", + "system": true + } + ], + "method": "GET" + }, + "response": { + "id": "39b0f8ca-4307-4ac1-a3db-f1d197d9778d", + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 23:40:44 GMT" + }, + { + "key": "Content-Type", + "value": "application/json; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "e6982121-ac3b-439d" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ac69aa5eefcd91-LHR" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "stream": { + "type": "Buffer", + "data": [ + 34, + 123, + 92, + 34, + 100, + 97, + 116, + 97, + 92, + 34, + 58, + 123, + 92, + 34, + 100, + 97, + 116, + 101, + 92, + 34, + 58, + 123, + 92, + 34, + 99, + 114, + 101, + 97, + 116, + 101, + 100, + 95, + 97, + 116, + 92, + 34, + 58, + 92, + 34, + 50, + 48, + 50, + 53, + 45, + 48, + 51, + 45, + 49, + 48, + 92, + 34, + 44, + 92, + 34, + 117, + 112, + 100, + 97, + 116, + 101, + 100, + 95, + 97, + 116, + 92, + 34, + 58, + 92, + 34, + 50, + 48, + 50, + 53, + 45, + 48, + 51, + 45, + 49, + 48, + 92, + 34, + 125, + 44, + 92, + 34, + 100, + 101, + 115, + 99, + 114, + 105, + 112, + 116, + 105, + 111, + 110, + 115, + 92, + 34, + 58, + 123, + 92, + 34, + 97, + 112, + 112, + 95, + 100, + 101, + 115, + 99, + 114, + 105, + 112, + 116, + 105, + 111, + 110, + 92, + 34, + 58, + 92, + 34, + 66, + 108, + 111, + 103, + 103, + 101, + 114, + 32, + 65, + 103, + 101, + 110, + 116, + 32, + 104, + 101, + 108, + 112, + 115, + 32, + 117, + 115, + 101, + 114, + 115, + 32, + 103, + 101, + 110, + 101, + 114, + 97, + 116, + 101, + 32, + 104, + 105, + 103, + 104, + 45, + 113, + 117, + 97, + 108, + 105, + 116, + 121, + 32, + 98, + 108, + 111, + 103, + 32, + 99, + 111, + 110, + 116, + 101, + 110, + 116, + 32, + 101, + 102, + 102, + 111, + 114, + 116, + 108, + 101, + 115, + 115, + 108, + 121, + 32, + 117, + 115, + 105, + 110, + 103, + 32, + 65, + 73, + 44, + 32, + 112, + 114, + 111, + 118, + 105, + 100, + 105, + 110, + 103, + 32, + 115, + 116, + 114, + 117, + 99, + 116, + 117, + 114, + 101, + 44, + 32, + 99, + 114, + 101, + 97, + 116, + 105, + 118, + 105, + 116, + 121, + 44, + 32, + 97, + 110, + 100, + 32, + 83, + 69, + 79, + 32, + 111, + 112, + 116, + 105, + 109, + 105, + 122, + 97, + 116, + 105, + 111, + 110, + 46, + 92, + 34, + 44, + 92, + 34, + 97, + 112, + 112, + 95, + 108, + 111, + 103, + 111, + 92, + 34, + 58, + 92, + 34, + 104, + 116, + 116, + 112, + 115, + 58, + 47, + 47, + 114, + 101, + 115, + 46, + 99, + 108, + 111, + 117, + 100, + 105, + 110, + 97, + 114, + 121, + 46, + 99, + 111, + 109, + 47, + 100, + 108, + 117, + 52, + 53, + 110, + 111, + 101, + 102, + 47, + 105, + 109, + 97, + 103, + 101, + 47, + 117, + 112, + 108, + 111, + 97, + 100, + 47, + 101, + 95, + 103, + 101, + 110, + 95, + 114, + 101, + 109, + 111, + 118, + 101, + 58, + 112, + 114, + 111, + 109, + 112, + 116, + 95, + 40, + 98, + 97, + 99, + 107, + 103, + 114, + 111, + 117, + 110, + 100, + 41, + 59, + 109, + 117, + 108, + 116, + 105, + 112, + 108, + 101, + 95, + 116, + 114, + 117, + 101, + 47, + 118, + 49, + 55, + 52, + 50, + 56, + 56, + 50, + 50, + 49, + 51, + 47, + 98, + 108, + 111, + 103, + 103, + 101, + 114, + 45, + 97, + 103, + 101, + 110, + 116, + 95, + 108, + 98, + 102, + 100, + 105, + 122, + 46, + 106, + 112, + 103, + 92, + 34, + 44, + 92, + 34, + 97, + 112, + 112, + 95, + 110, + 97, + 109, + 101, + 92, + 34, + 58, + 92, + 34, + 65, + 73, + 32, + 66, + 108, + 111, + 103, + 103, + 101, + 114, + 32, + 65, + 103, + 101, + 110, + 116, + 92, + 34, + 44, + 92, + 34, + 97, + 112, + 112, + 95, + 117, + 114, + 108, + 92, + 34, + 58, + 92, + 34, + 104, + 116, + 116, + 112, + 115, + 58, + 47, + 47, + 116, + 101, + 108, + 101, + 120, + 45, + 98, + 108, + 111, + 103, + 103, + 101, + 114, + 45, + 97, + 103, + 101, + 110, + 116, + 45, + 100, + 111, + 99, + 115, + 46, + 111, + 110, + 114, + 101, + 110, + 100, + 101, + 114, + 46, + 99, + 111, + 109, + 92, + 34, + 44, + 92, + 34, + 98, + 97, + 99, + 107, + 103, + 114, + 111, + 117, + 110, + 100, + 95, + 99, + 111, + 108, + 111, + 114, + 92, + 34, + 58, + 92, + 34, + 35, + 50, + 101, + 99, + 99, + 55, + 49, + 92, + 34, + 125, + 44, + 92, + 34, + 105, + 110, + 116, + 101, + 103, + 114, + 97, + 116, + 105, + 111, + 110, + 95, + 99, + 97, + 116, + 101, + 103, + 111, + 114, + 121, + 92, + 34, + 58, + 92, + 34, + 65, + 73, + 32, + 92, + 92, + 117, + 48, + 48, + 50, + 54, + 32, + 77, + 97, + 99, + 104, + 105, + 110, + 101, + 32, + 76, + 101, + 97, + 114, + 110, + 105, + 110, + 103, + 92, + 34, + 44, + 92, + 34, + 105, + 110, + 116, + 101, + 103, + 114, + 97, + 116, + 105, + 111, + 110, + 95, + 116, + 121, + 112, + 101, + 92, + 34, + 58, + 92, + 34, + 109, + 111, + 100, + 105, + 102, + 105, + 101, + 114, + 92, + 34, + 44, + 92, + 34, + 105, + 115, + 95, + 97, + 99, + 116, + 105, + 118, + 101, + 92, + 34, + 58, + 116, + 114, + 117, + 101, + 44, + 92, + 34, + 107, + 101, + 121, + 95, + 102, + 101, + 97, + 116, + 117, + 114, + 101, + 115, + 92, + 34, + 58, + 91, + 92, + 34, + 80, + 114, + 111, + 118, + 105, + 100, + 101, + 115, + 32, + 97, + 32, + 99, + 104, + 97, + 116, + 45, + 98, + 97, + 115, + 101, + 100, + 32, + 73, + 110, + 116, + 101, + 114, + 97, + 99, + 116, + 105, + 111, + 110, + 32, + 119, + 105, + 116, + 104, + 32, + 116, + 104, + 101, + 32, + 65, + 73, + 92, + 34, + 44, + 92, + 34, + 71, + 101, + 110, + 101, + 114, + 97, + 116, + 101, + 115, + 32, + 104, + 105, + 103, + 104, + 45, + 113, + 117, + 97, + 108, + 105, + 116, + 121, + 32, + 98, + 108, + 111, + 103, + 32, + 99, + 111, + 110, + 116, + 101, + 110, + 116, + 32, + 117, + 115, + 105, + 110, + 103, + 32, + 65, + 73, + 32, + 105, + 110, + 32, + 115, + 101, + 99, + 111, + 110, + 100, + 115, + 46, + 92, + 34, + 44, + 92, + 34, + 65, + 108, + 108, + 111, + 119, + 115, + 32, + 99, + 117, + 115, + 116, + 111, + 109, + 105, + 122, + 97, + 116, + 105, + 111, + 110, + 32, + 111, + 102, + 32, + 116, + 111, + 110, + 101, + 32, + 97, + 110, + 100, + 32, + 119, + 114, + 105, + 116, + 105, + 110, + 103, + 32, + 115, + 116, + 121, + 108, + 101, + 46, + 92, + 34, + 44, + 92, + 34, + 83, + 117, + 112, + 112, + 111, + 114, + 116, + 115, + 32, + 107, + 101, + 121, + 119, + 111, + 114, + 100, + 45, + 98, + 97, + 115, + 101, + 100, + 32, + 99, + 111, + 110, + 116, + 101, + 110, + 116, + 32, + 103, + 101, + 110, + 101, + 114, + 97, + 116, + 105, + 111, + 110, + 32, + 102, + 111, + 114, + 32, + 83, + 69, + 79, + 32, + 111, + 112, + 116, + 105, + 109, + 105, + 122, + 97, + 116, + 105, + 111, + 110, + 46, + 92, + 34, + 44, + 92, + 34, + 67, + 97, + 110, + 32, + 99, + 114, + 101, + 97, + 116, + 101, + 32, + 102, + 117, + 108, + 108, + 32, + 97, + 114, + 116, + 105, + 99, + 108, + 101, + 115, + 44, + 32, + 111, + 117, + 116, + 108, + 105, + 110, + 101, + 115, + 44, + 32, + 111, + 114, + 32, + 115, + 117, + 109, + 109, + 97, + 114, + 105, + 101, + 115, + 32, + 98, + 97, + 115, + 101, + 100, + 32, + 111, + 110, + 32, + 117, + 115, + 101, + 114, + 32, + 105, + 110, + 112, + 117, + 116, + 46, + 92, + 34, + 93, + 44, + 92, + 34, + 112, + 101, + 114, + 109, + 105, + 115, + 115, + 105, + 111, + 110, + 115, + 92, + 34, + 58, + 123, + 92, + 34, + 98, + 108, + 111, + 103, + 103, + 101, + 114, + 95, + 97, + 103, + 101, + 110, + 116, + 92, + 34, + 58, + 123, + 92, + 34, + 97, + 108, + 119, + 97, + 121, + 115, + 95, + 111, + 110, + 108, + 105, + 110, + 101, + 92, + 34, + 58, + 116, + 114, + 117, + 101, + 44, + 92, + 34, + 100, + 105, + 115, + 112, + 108, + 97, + 121, + 95, + 110, + 97, + 109, + 101, + 92, + 34, + 58, + 92, + 34, + 66, + 108, + 111, + 103, + 103, + 101, + 114, + 32, + 65, + 103, + 101, + 110, + 116, + 92, + 34, + 125, + 125, + 44, + 92, + 34, + 115, + 101, + 116, + 116, + 105, + 110, + 103, + 115, + 92, + 34, + 58, + 91, + 123, + 92, + 34, + 108, + 97, + 98, + 101, + 108, + 92, + 34, + 58, + 92, + 34, + 99, + 111, + 109, + 112, + 97, + 110, + 121, + 95, + 110, + 97, + 109, + 101, + 92, + 34, + 44, + 92, + 34, + 116, + 121, + 112, + 101, + 92, + 34, + 58, + 92, + 34, + 116, + 101, + 120, + 116, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 115, + 99, + 114, + 105, + 112, + 116, + 105, + 111, + 110, + 92, + 34, + 58, + 92, + 34, + 80, + 114, + 111, + 118, + 105, + 100, + 101, + 32, + 116, + 104, + 101, + 32, + 110, + 97, + 109, + 101, + 32, + 111, + 102, + 32, + 116, + 104, + 101, + 32, + 99, + 111, + 109, + 112, + 97, + 110, + 121, + 47, + 98, + 114, + 97, + 110, + 100, + 32, + 116, + 104, + 97, + 116, + 32, + 116, + 104, + 101, + 32, + 98, + 108, + 111, + 103, + 32, + 99, + 111, + 110, + 116, + 101, + 110, + 116, + 32, + 115, + 104, + 111, + 117, + 108, + 100, + 32, + 97, + 108, + 105, + 103, + 110, + 32, + 119, + 105, + 116, + 104, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 102, + 97, + 117, + 108, + 116, + 92, + 34, + 58, + 92, + 34, + 92, + 34, + 44, + 92, + 34, + 114, + 101, + 113, + 117, + 105, + 114, + 101, + 100, + 92, + 34, + 58, + 116, + 114, + 117, + 101, + 125, + 44, + 123, + 92, + 34, + 108, + 97, + 98, + 101, + 108, + 92, + 34, + 58, + 92, + 34, + 99, + 111, + 109, + 112, + 97, + 110, + 121, + 95, + 111, + 118, + 101, + 114, + 118, + 105, + 101, + 119, + 92, + 34, + 44, + 92, + 34, + 116, + 121, + 112, + 101, + 92, + 34, + 58, + 92, + 34, + 116, + 101, + 120, + 116, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 115, + 99, + 114, + 105, + 112, + 116, + 105, + 111, + 110, + 92, + 34, + 58, + 92, + 34, + 80, + 114, + 111, + 118, + 105, + 100, + 101, + 32, + 97, + 32, + 115, + 104, + 111, + 114, + 116, + 32, + 111, + 118, + 101, + 114, + 118, + 105, + 101, + 119, + 32, + 111, + 102, + 32, + 116, + 104, + 101, + 32, + 99, + 111, + 109, + 112, + 97, + 110, + 121, + 44, + 32, + 105, + 116, + 115, + 32, + 109, + 105, + 115, + 115, + 105, + 111, + 110, + 44, + 32, + 111, + 114, + 32, + 105, + 116, + 115, + 32, + 99, + 111, + 114, + 101, + 32, + 115, + 101, + 114, + 118, + 105, + 99, + 101, + 115, + 32, + 116, + 111, + 32, + 116, + 97, + 105, + 108, + 111, + 114, + 32, + 116, + 104, + 101, + 32, + 98, + 108, + 111, + 103, + 92, + 92, + 117, + 48, + 48, + 50, + 55, + 115, + 32, + 99, + 111, + 110, + 116, + 101, + 110, + 116, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 102, + 97, + 117, + 108, + 116, + 92, + 34, + 58, + 92, + 34, + 92, + 34, + 44, + 92, + 34, + 114, + 101, + 113, + 117, + 105, + 114, + 101, + 100, + 92, + 34, + 58, + 102, + 97, + 108, + 115, + 101, + 125, + 44, + 123, + 92, + 34, + 108, + 97, + 98, + 101, + 108, + 92, + 34, + 58, + 92, + 34, + 99, + 111, + 109, + 112, + 97, + 110, + 121, + 95, + 119, + 101, + 98, + 115, + 105, + 116, + 101, + 92, + 34, + 44, + 92, + 34, + 116, + 121, + 112, + 101, + 92, + 34, + 58, + 92, + 34, + 116, + 101, + 120, + 116, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 115, + 99, + 114, + 105, + 112, + 116, + 105, + 111, + 110, + 92, + 34, + 58, + 92, + 34, + 80, + 114, + 111, + 118, + 105, + 100, + 101, + 32, + 116, + 104, + 101, + 32, + 99, + 111, + 109, + 112, + 97, + 110, + 121, + 92, + 92, + 117, + 50, + 48, + 49, + 57, + 115, + 32, + 119, + 101, + 98, + 115, + 105, + 116, + 101, + 32, + 85, + 82, + 76, + 32, + 116, + 111, + 32, + 98, + 101, + 32, + 105, + 110, + 99, + 108, + 117, + 100, + 101, + 100, + 32, + 105, + 110, + 32, + 116, + 104, + 101, + 32, + 98, + 108, + 111, + 103, + 32, + 112, + 111, + 115, + 116, + 32, + 99, + 111, + 110, + 99, + 108, + 117, + 115, + 105, + 111, + 110, + 46, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 102, + 97, + 117, + 108, + 116, + 92, + 34, + 58, + 92, + 34, + 104, + 116, + 116, + 112, + 115, + 58, + 47, + 47, + 119, + 119, + 119, + 46, + 116, + 101, + 99, + 104, + 110, + 111, + 108, + 111, + 103, + 121, + 45, + 105, + 110, + 110, + 111, + 118, + 97, + 116, + 111, + 114, + 115, + 46, + 99, + 111, + 109, + 92, + 34, + 44, + 92, + 34, + 114, + 101, + 113, + 117, + 105, + 114, + 101, + 100, + 92, + 34, + 58, + 102, + 97, + 108, + 115, + 101, + 125, + 44, + 123, + 92, + 34, + 108, + 97, + 98, + 101, + 108, + 92, + 34, + 58, + 92, + 34, + 105, + 110, + 100, + 117, + 115, + 116, + 114, + 121, + 92, + 34, + 44, + 92, + 34, + 116, + 121, + 112, + 101, + 92, + 34, + 58, + 92, + 34, + 116, + 101, + 120, + 116, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 115, + 99, + 114, + 105, + 112, + 116, + 105, + 111, + 110, + 92, + 34, + 58, + 92, + 34, + 80, + 114, + 111, + 118, + 105, + 100, + 101, + 32, + 116, + 104, + 101, + 32, + 99, + 111, + 109, + 112, + 97, + 110, + 121, + 92, + 92, + 117, + 50, + 48, + 49, + 57, + 115, + 32, + 105, + 110, + 100, + 117, + 115, + 116, + 114, + 121, + 46, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 102, + 97, + 117, + 108, + 116, + 92, + 34, + 58, + 92, + 34, + 92, + 34, + 44, + 92, + 34, + 114, + 101, + 113, + 117, + 105, + 114, + 101, + 100, + 92, + 34, + 58, + 102, + 97, + 108, + 115, + 101, + 125, + 44, + 123, + 92, + 34, + 108, + 97, + 98, + 101, + 108, + 92, + 34, + 58, + 92, + 34, + 116, + 97, + 114, + 103, + 101, + 116, + 95, + 97, + 117, + 100, + 105, + 101, + 110, + 99, + 101, + 92, + 34, + 44, + 92, + 34, + 116, + 121, + 112, + 101, + 92, + 34, + 58, + 92, + 34, + 116, + 101, + 120, + 116, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 115, + 99, + 114, + 105, + 112, + 116, + 105, + 111, + 110, + 92, + 34, + 58, + 92, + 34, + 80, + 114, + 111, + 118, + 105, + 100, + 101, + 32, + 116, + 104, + 101, + 32, + 99, + 111, + 109, + 112, + 97, + 110, + 121, + 92, + 92, + 117, + 50, + 48, + 49, + 57, + 115, + 32, + 116, + 97, + 114, + 103, + 101, + 116, + 32, + 97, + 117, + 100, + 105, + 101, + 110, + 99, + 101, + 46, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 102, + 97, + 117, + 108, + 116, + 92, + 34, + 58, + 92, + 34, + 92, + 34, + 44, + 92, + 34, + 114, + 101, + 113, + 117, + 105, + 114, + 101, + 100, + 92, + 34, + 58, + 102, + 97, + 108, + 115, + 101, + 125, + 44, + 123, + 92, + 34, + 108, + 97, + 98, + 101, + 108, + 92, + 34, + 58, + 92, + 34, + 116, + 111, + 110, + 101, + 92, + 34, + 44, + 92, + 34, + 116, + 121, + 112, + 101, + 92, + 34, + 58, + 92, + 34, + 100, + 114, + 111, + 112, + 100, + 111, + 119, + 110, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 115, + 99, + 114, + 105, + 112, + 116, + 105, + 111, + 110, + 92, + 34, + 58, + 92, + 34, + 67, + 104, + 111, + 111, + 115, + 101, + 32, + 116, + 104, + 101, + 32, + 116, + 111, + 110, + 101, + 32, + 102, + 111, + 114, + 32, + 116, + 104, + 101, + 32, + 98, + 108, + 111, + 103, + 32, + 99, + 111, + 110, + 116, + 101, + 110, + 116, + 46, + 92, + 34, + 44, + 92, + 34, + 111, + 112, + 116, + 105, + 111, + 110, + 115, + 92, + 34, + 58, + 91, + 92, + 34, + 80, + 114, + 111, + 102, + 101, + 115, + 115, + 105, + 111, + 110, + 97, + 108, + 92, + 34, + 44, + 92, + 34, + 67, + 97, + 115, + 117, + 97, + 108, + 92, + 34, + 44, + 92, + 34, + 80, + 101, + 114, + 115, + 117, + 97, + 115, + 105, + 118, + 101, + 92, + 34, + 44, + 92, + 34, + 73, + 110, + 102, + 111, + 114, + 109, + 97, + 116, + 105, + 118, + 101, + 92, + 34, + 93, + 44, + 92, + 34, + 100, + 101, + 102, + 97, + 117, + 108, + 116, + 92, + 34, + 58, + 92, + 34, + 73, + 110, + 102, + 111, + 114, + 109, + 97, + 116, + 105, + 118, + 101, + 92, + 34, + 44, + 92, + 34, + 114, + 101, + 113, + 117, + 105, + 114, + 101, + 100, + 92, + 34, + 58, + 116, + 114, + 117, + 101, + 125, + 44, + 123, + 92, + 34, + 108, + 97, + 98, + 101, + 108, + 92, + 34, + 58, + 92, + 34, + 98, + 108, + 111, + 103, + 95, + 108, + 101, + 110, + 103, + 116, + 104, + 92, + 34, + 44, + 92, + 34, + 116, + 121, + 112, + 101, + 92, + 34, + 58, + 92, + 34, + 100, + 114, + 111, + 112, + 100, + 111, + 119, + 110, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 115, + 99, + 114, + 105, + 112, + 116, + 105, + 111, + 110, + 92, + 34, + 58, + 92, + 34, + 83, + 101, + 108, + 101, + 99, + 116, + 32, + 116, + 104, + 101, + 32, + 112, + 114, + 101, + 102, + 101, + 114, + 114, + 101, + 100, + 32, + 98, + 108, + 111, + 103, + 32, + 108, + 101, + 110, + 103, + 116, + 104, + 46, + 92, + 34, + 44, + 92, + 34, + 111, + 112, + 116, + 105, + 111, + 110, + 115, + 92, + 34, + 58, + 91, + 92, + 34, + 115, + 104, + 111, + 114, + 116, + 92, + 34, + 44, + 92, + 34, + 109, + 101, + 100, + 105, + 117, + 109, + 92, + 34, + 44, + 92, + 34, + 108, + 111, + 110, + 103, + 92, + 34, + 93, + 44, + 92, + 34, + 100, + 101, + 102, + 97, + 117, + 108, + 116, + 92, + 34, + 58, + 92, + 34, + 109, + 101, + 100, + 105, + 117, + 109, + 92, + 34, + 44, + 92, + 34, + 114, + 101, + 113, + 117, + 105, + 114, + 101, + 100, + 92, + 34, + 58, + 116, + 114, + 117, + 101, + 125, + 44, + 123, + 92, + 34, + 108, + 97, + 98, + 101, + 108, + 92, + 34, + 58, + 92, + 34, + 98, + 108, + 111, + 103, + 95, + 103, + 101, + 110, + 101, + 114, + 97, + 116, + 105, + 111, + 110, + 95, + 105, + 110, + 116, + 101, + 114, + 118, + 97, + 108, + 92, + 34, + 44, + 92, + 34, + 116, + 121, + 112, + 101, + 92, + 34, + 58, + 92, + 34, + 100, + 114, + 111, + 112, + 100, + 111, + 119, + 110, + 92, + 34, + 44, + 92, + 34, + 100, + 101, + 115, + 99, + 114, + 105, + 112, + 116, + 105, + 111, + 110, + 92, + 34, + 58, + 92, + 34, + 83, + 101, + 108, + 101, + 99, + 116, + 32, + 116, + 104, + 101, + 32, + 112, + 114, + 101, + 102, + 101, + 114, + 114, + 101, + 100, + 32, + 98, + 108, + 111, + 103, + 32, + 105, + 100, + 101, + 97, + 115, + 32, + 114, + 101, + 99, + 111, + 109, + 109, + 101, + 110, + 100, + 97, + 116, + 105, + 111, + 110, + 32, + 105, + 110, + 116, + 101, + 114, + 118, + 97, + 108, + 92, + 34, + 44, + 92, + 34, + 111, + 112, + 116, + 105, + 111, + 110, + 115, + 92, + 34, + 58, + 91, + 92, + 34, + 78, + 111, + 110, + 101, + 92, + 34, + 44, + 92, + 34, + 69, + 118, + 101, + 114, + 121, + 32, + 49, + 50, + 32, + 104, + 111, + 117, + 114, + 115, + 32, + 92, + 34, + 44, + 92, + 34, + 69, + 118, + 101, + 114, + 121, + 32, + 50, + 52, + 32, + 104, + 111, + 117, + 114, + 115, + 92, + 34, + 93, + 44, + 92, + 34, + 100, + 101, + 102, + 97, + 117, + 108, + 116, + 92, + 34, + 58, + 92, + 34, + 78, + 111, + 110, + 101, + 92, + 34, + 44, + 92, + 34, + 114, + 101, + 113, + 117, + 105, + 114, + 101, + 100, + 92, + 34, + 58, + 116, + 114, + 117, + 101, + 125, + 93, + 44, + 92, + 34, + 98, + 111, + 116, + 92, + 34, + 58, + 116, + 114, + 117, + 101, + 44, + 92, + 34, + 116, + 97, + 114, + 103, + 101, + 116, + 95, + 117, + 114, + 108, + 92, + 34, + 58, + 92, + 34, + 104, + 116, + 116, + 112, + 115, + 58, + 47, + 47, + 116, + 101, + 108, + 101, + 120, + 45, + 98, + 108, + 111, + 103, + 103, + 101, + 114, + 45, + 97, + 103, + 101, + 110, + 116, + 45, + 113, + 100, + 112, + 52, + 46, + 111, + 110, + 114, + 101, + 110, + 100, + 101, + 114, + 46, + 99, + 111, + 109, + 47, + 97, + 112, + 105, + 47, + 118, + 49, + 47, + 98, + 108, + 111, + 103, + 103, + 101, + 114, + 45, + 97, + 103, + 101, + 110, + 116, + 47, + 103, + 101, + 110, + 101, + 114, + 97, + 116, + 101, + 45, + 98, + 108, + 111, + 103, + 92, + 34, + 125, + 125, + 34 + ] + }, + "cookie": [], + "responseTime": 989, + "responseSize": 2766 + }, + "id": "cbddd6b9-ae36-4f0a-a5df-a28711675f01", + "assertions": [ + { + "assertion": "Response status code is 200", + "skipped": false + }, + { + "assertion": "Response content type is 'application/json'", + "skipped": false + }, + { + "assertion": "Response time is less than 1000ms", + "skipped": false + } + ] + }, + { + "cursor": { + "ref": "8656cae5-77b7-4511-958d-d50c8f80f852", + "length": 8, + "cycles": 1, + "position": 1, + "iteration": 0, + "httpRequestId": "14c4127e-5ffd-4c8a-86a3-3c9af6bcbfe7" + }, + "item": { + "id": "cec64707-c37f-45b4-a065-b24ba57ffc3c", + "name": "Validate error status for malformed Json request", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI in assertive learning \",\r\n \"channel_id\": \"0195f1ff-5ce8-7898-b49f-48e8cf621fe6\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"Hng 12\",\r\n \"type\": \"Tech education\",\r\n \"description\": \"we are the freedom fighters \",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n ", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "json" + }, + "id": "59232c05-45ca-4641-b3e9-343b0127bffd", + "name": "Validate error status for malformed Json request", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI in assertive learning \",\r\n \"channel_id\": \"0195f1ff-5ce8-7898-b49f-48e8cf621fe6\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"Hng 12\",\r\n \"type\": \"Tech education\",\r\n \"description\": \"we are the freedom fighters \",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n ", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "Bad Request", + "code": 400, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 20:42:18 GMT" + }, + { + "key": "Content-Type", + "value": "application/problem+json; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "rndr-id", + "value": "86295ef1-027e-4be5" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ab64469ea95944-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "{\n \"type\": \"https://tools.ietf.org/html/rfc9110#section-15.5.1\",\n \"title\": \"One or more validation errors occurred.\",\n \"status\": 400,\n \"errors\": {\n \"blogDto\": [\n \"The blogDto field is required.\"\n ],\n \"$.settings[1]\": [\n \"Expected start of a property name or value, but instead reached end of data. Path: $.settings[1] | LineNumber: 12 | BytePositionInLine: 3.\"\n ]\n },\n \"traceId\": \"00-a7a8fec50f990afbf0035ca4f877f643-5f2e6762ce973af7-00\"\n}", + "cookie": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "5c4167d2-8a2d-4937-b1f5-956cbcb807e9", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// For POST/PUT requests, you might want to add additional headers or validations\r", + "if (pm.request.method === 'POST' || pm.request.method === 'POST') {\r", + " pm.request.headers.add({\r", + " key: 'Accept',\r", + " value: 'plain/text'\r", + " });\r", + " \r", + " // Add timestamp header for request tracking\r", + " pm.request.headers.add({\r", + " key: 'X-Request-Timestamp',\r", + " value: new Date().toISOString()\r", + " });\r", + "}\r", + "\r", + "\r", + "" + ], + "_lastExecutionId": "397a0ca0-f138-4c93-b70b-d8c24a4bf041" + } + }, + { + "listen": "test", + "script": { + "id": "fe358dae-6fe8-45ec-9c90-9de84859d800", + "type": "text/javascript", + "packages": {}, + "exec": [ + "pm.response.to.have.status(400);\r", + "\r", + "pm.test(\"Response time is less than 1000ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(1000);\r", + "});\r", + "" + ], + "_lastExecutionId": "cf61b354-a55b-4052-94d8-b164e43b593b" + } + } + ] + }, + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "Accept", + "value": "plain/text" + }, + { + "key": "X-Request-Timestamp", + "value": "2025-04-03T23:40:45.124Z" + }, + { + "key": "Content-Type", + "value": "application/json", + "system": true + }, + { + "key": "User-Agent", + "value": "PostmanRuntime/7.39.1", + "system": true + }, + { + "key": "Cache-Control", + "value": "no-cache", + "system": true + }, + { + "key": "Postman-Token", + "value": "ad59ceb2-7326-4b3c-bca6-a4032cad522c", + "system": true + }, + { + "key": "Host", + "value": "telex-blogger-agent-qdp4.onrender.com", + "system": true + }, + { + "key": "Accept-Encoding", + "value": "gzip, deflate, br", + "system": true + }, + { + "key": "Connection", + "value": "keep-alive", + "system": true + }, + { + "key": "Content-Length", + "value": "403", + "system": true + } + ], + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI in assertive learning \",\r\n \"channel_id\": \"0195f1ff-5ce8-7898-b49f-48e8cf621fe6\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"Hng 12\",\r\n \"type\": \"Tech education\",\r\n \"description\": \"we are the freedom fighters \",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n ", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": { + "id": "324329e3-a81f-4bc9-8f00-215a6489d52b", + "status": "Bad Request", + "code": 400, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 23:40:45 GMT" + }, + { + "key": "Content-Type", + "value": "application/problem+json; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "rndr-id", + "value": "0ed60c5c-c56b-4859" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ac69aed93bcd91-LHR" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "stream": { + "type": "Buffer", + "data": [ + 123, + 34, + 116, + 121, + 112, + 101, + 34, + 58, + 34, + 104, + 116, + 116, + 112, + 115, + 58, + 47, + 47, + 116, + 111, + 111, + 108, + 115, + 46, + 105, + 101, + 116, + 102, + 46, + 111, + 114, + 103, + 47, + 104, + 116, + 109, + 108, + 47, + 114, + 102, + 99, + 57, + 49, + 49, + 48, + 35, + 115, + 101, + 99, + 116, + 105, + 111, + 110, + 45, + 49, + 53, + 46, + 53, + 46, + 49, + 34, + 44, + 34, + 116, + 105, + 116, + 108, + 101, + 34, + 58, + 34, + 79, + 110, + 101, + 32, + 111, + 114, + 32, + 109, + 111, + 114, + 101, + 32, + 118, + 97, + 108, + 105, + 100, + 97, + 116, + 105, + 111, + 110, + 32, + 101, + 114, + 114, + 111, + 114, + 115, + 32, + 111, + 99, + 99, + 117, + 114, + 114, + 101, + 100, + 46, + 34, + 44, + 34, + 115, + 116, + 97, + 116, + 117, + 115, + 34, + 58, + 52, + 48, + 48, + 44, + 34, + 101, + 114, + 114, + 111, + 114, + 115, + 34, + 58, + 123, + 34, + 98, + 108, + 111, + 103, + 68, + 116, + 111, + 34, + 58, + 91, + 34, + 84, + 104, + 101, + 32, + 98, + 108, + 111, + 103, + 68, + 116, + 111, + 32, + 102, + 105, + 101, + 108, + 100, + 32, + 105, + 115, + 32, + 114, + 101, + 113, + 117, + 105, + 114, + 101, + 100, + 46, + 34, + 93, + 44, + 34, + 36, + 46, + 115, + 101, + 116, + 116, + 105, + 110, + 103, + 115, + 91, + 49, + 93, + 34, + 58, + 91, + 34, + 69, + 120, + 112, + 101, + 99, + 116, + 101, + 100, + 32, + 115, + 116, + 97, + 114, + 116, + 32, + 111, + 102, + 32, + 97, + 32, + 112, + 114, + 111, + 112, + 101, + 114, + 116, + 121, + 32, + 110, + 97, + 109, + 101, + 32, + 111, + 114, + 32, + 118, + 97, + 108, + 117, + 101, + 44, + 32, + 98, + 117, + 116, + 32, + 105, + 110, + 115, + 116, + 101, + 97, + 100, + 32, + 114, + 101, + 97, + 99, + 104, + 101, + 100, + 32, + 101, + 110, + 100, + 32, + 111, + 102, + 32, + 100, + 97, + 116, + 97, + 46, + 32, + 80, + 97, + 116, + 104, + 58, + 32, + 36, + 46, + 115, + 101, + 116, + 116, + 105, + 110, + 103, + 115, + 91, + 49, + 93, + 32, + 124, + 32, + 76, + 105, + 110, + 101, + 78, + 117, + 109, + 98, + 101, + 114, + 58, + 32, + 49, + 50, + 32, + 124, + 32, + 66, + 121, + 116, + 101, + 80, + 111, + 115, + 105, + 116, + 105, + 111, + 110, + 73, + 110, + 76, + 105, + 110, + 101, + 58, + 32, + 51, + 46, + 34, + 93, + 125, + 44, + 34, + 116, + 114, + 97, + 99, + 101, + 73, + 100, + 34, + 58, + 34, + 48, + 48, + 45, + 56, + 57, + 100, + 49, + 98, + 56, + 53, + 102, + 97, + 102, + 51, + 97, + 99, + 50, + 54, + 99, + 52, + 54, + 50, + 100, + 51, + 54, + 99, + 98, + 53, + 98, + 56, + 98, + 49, + 54, + 56, + 50, + 45, + 48, + 98, + 49, + 52, + 53, + 48, + 101, + 55, + 97, + 98, + 100, + 53, + 99, + 52, + 51, + 56, + 45, + 48, + 48, + 34, + 125 + ] + }, + "cookie": [], + "responseTime": 312, + "responseSize": 407 + }, + "id": "cec64707-c37f-45b4-a065-b24ba57ffc3c", + "assertions": [ + { + "assertion": "Response time is less than 1000ms", + "skipped": false + } + ] + }, + { + "cursor": { + "ref": "fa8e1429-7d54-46a7-811a-35d66ae8caf9", + "length": 8, + "cycles": 1, + "position": 2, + "iteration": 0, + "httpRequestId": "83a0e939-8c46-45d9-a502-45c193a243d2" + }, + "item": { + "id": "903f1903-a84a-48a6-9f05-0a870a27b54e", + "name": "Verify the API accepts and processes valid POST data", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "88aeb0c2-ac78-4f68-a270-902d9f5169ef", + "name": "Validate error status for malformed Json request Copy", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 20:42:00 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "50a16b49-baf7-4327" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ab63d8396981c3-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "Generate a blog post on The Impact of AI on Content Writing", + "cookie": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "898a4488-cfc8-4aab-988c-ddf8114ffbae", + "type": "text/javascript", + "packages": {}, + "exec": [ + "\r", + "\r", + "\r", + "// For POST/PUT requests, you might want to add additional headers or validations\r", + "if (pm.request.method === 'POST' || pm.request.method === 'POST') {\r", + " pm.request.headers.add({\r", + " key: 'Accept',\r", + " value: 'plain/text'\r", + " });\r", + " \r", + " // Add timestamp header for request tracking\r", + " pm.request.headers.add({\r", + " key: 'X-Request-Timestamp',\r", + " value: new Date().toISOString()\r", + " });\r", + "}\r", + "\r", + "\r", + "" + ], + "_lastExecutionId": "dc96b51f-d6ad-476a-9a8a-abcb113792d6" + } + }, + { + "listen": "test", + "script": { + "id": "8f53b7a4-77f8-4f7d-ad14-f5f3dd9237c8", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the status code\r", + "pm.response.to.have.status(200);\r", + "// Validating the response body\r", + "pm.test(\"Validate response body\", function () {\r", + " pm.response.to.have.body(\"Generate a blog post on The Impact of AI on Content Writing\");\r", + "});\r", + "\r", + "// Validating the response time\r", + "pm.test(\"Response time is less than 1000ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(1000);\r", + "});\r", + "" + ], + "_lastExecutionId": "9302b474-37d9-454f-af7d-1fc0f9c6ab7f" + } + } + ] + }, + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "Accept", + "value": "plain/text" + }, + { + "key": "X-Request-Timestamp", + "value": "2025-04-03T23:40:45.530Z" + }, + { + "key": "Content-Type", + "value": "application/json", + "system": true + }, + { + "key": "User-Agent", + "value": "PostmanRuntime/7.39.1", + "system": true + }, + { + "key": "Cache-Control", + "value": "no-cache", + "system": true + }, + { + "key": "Postman-Token", + "value": "c2071bc6-3e6e-4081-9e97-b09af1b57a56", + "system": true + }, + { + "key": "Host", + "value": "telex-blogger-agent-qdp4.onrender.com", + "system": true + }, + { + "key": "Accept-Encoding", + "value": "gzip, deflate, br", + "system": true + }, + { + "key": "Connection", + "value": "keep-alive", + "system": true + }, + { + "key": "Content-Length", + "value": "1642", + "system": true + } + ], + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": { + "id": "cd52d3d1-c4c2-42a3-aea0-d4b20118f73c", + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 23:40:45 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "1afa6569-c7a2-484a" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ac69b17a84cd91-LHR" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "stream": { + "type": "Buffer", + "data": [ + 71, + 101, + 110, + 101, + 114, + 97, + 116, + 101, + 32, + 97, + 32, + 98, + 108, + 111, + 103, + 32, + 112, + 111, + 115, + 116, + 32, + 111, + 110, + 32, + 84, + 104, + 101, + 32, + 73, + 109, + 112, + 97, + 99, + 116, + 32, + 111, + 102, + 32, + 65, + 73, + 32, + 111, + 110, + 32, + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 32, + 87, + 114, + 105, + 116, + 105, + 110, + 103 + ] + }, + "cookie": [], + "responseTime": 361, + "responseSize": 59 + }, + "id": "903f1903-a84a-48a6-9f05-0a870a27b54e", + "assertions": [ + { + "assertion": "Validate response body", + "skipped": false + }, + { + "assertion": "Response time is less than 1000ms", + "skipped": false + } + ] + }, + { + "cursor": { + "ref": "d15bf10d-a632-4554-9a2d-e1bcc6031e6e", + "length": 8, + "cycles": 1, + "position": 3, + "iteration": 0, + "httpRequestId": "fdea89d3-bff3-4830-ae1a-26cad2ecce81" + }, + "item": { + "id": "09106092-7d20-4672-8580-19118d162cf9", + "name": "Validate Successful PUT Request for Updating Content", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "e7467c60-9beb-43cd-bf71-2f61accf6cc7", + "name": "Validate error status for malformed Json request Copy", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 20:42:00 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "50a16b49-baf7-4327" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ab63d8396981c3-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "Generate a blog post on The Impact of AI on Content Writing", + "cookie": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "c5a8e06f-c815-4425-bd07-1aaf7d8a6457", + "type": "text/javascript", + "packages": {}, + "exec": [ + "\r", + "\r", + "\r", + "// For POST/PUT requests, you might want to add additional headers or validations\r", + "if (pm.request.method === 'POST' || pm.request.method === 'POST') {\r", + " pm.request.headers.add({\r", + " key: 'Accept',\r", + " value: 'plain/text'\r", + " });\r", + " \r", + " // Add timestamp header for request tracking\r", + " pm.request.headers.add({\r", + " key: 'X-Request-Timestamp',\r", + " value: new Date().toISOString()\r", + " });\r", + "}\r", + "\r", + "\r", + "" + ], + "_lastExecutionId": "ad23d30c-b277-4cfb-b314-fbcae4e97c83" + } + }, + { + "listen": "test", + "script": { + "id": "e9acb494-a9e6-48e8-8177-7d6e0b79acf8", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the status code\r", + "pm.response.to.have.status(200);\r", + "// Validating the response body\r", + "pm.test(\"Validate response body\", function () {\r", + " pm.response.to.have.body(\"Generate a blog post on The Impact of AI on Content Writing\");\r", + "});\r", + "\r", + "// Validating the response time\r", + "pm.test(\"Response time is less than 1000ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(1000);\r", + "});\r", + "" + ], + "_lastExecutionId": "55765155-8417-4e49-af6b-db7856cdbda6" + } + } + ] + }, + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "Accept", + "value": "plain/text" + }, + { + "key": "X-Request-Timestamp", + "value": "2025-04-03T23:40:45.981Z" + }, + { + "key": "Content-Type", + "value": "application/json", + "system": true + }, + { + "key": "User-Agent", + "value": "PostmanRuntime/7.39.1", + "system": true + }, + { + "key": "Cache-Control", + "value": "no-cache", + "system": true + }, + { + "key": "Postman-Token", + "value": "d06e2035-7e31-4f7e-a730-435042be1c2f", + "system": true + }, + { + "key": "Host", + "value": "telex-blogger-agent-qdp4.onrender.com", + "system": true + }, + { + "key": "Accept-Encoding", + "value": "gzip, deflate, br", + "system": true + }, + { + "key": "Connection", + "value": "keep-alive", + "system": true + }, + { + "key": "Content-Length", + "value": "1642", + "system": true + } + ], + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": { + "id": "ee7f65c3-c291-479b-b920-c944a8abfcb7", + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 23:40:46 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "5b9c151c-ca34-4532" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ac69b41bf1cd91-LHR" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "stream": { + "type": "Buffer", + "data": [ + 71, + 101, + 110, + 101, + 114, + 97, + 116, + 101, + 32, + 97, + 32, + 98, + 108, + 111, + 103, + 32, + 112, + 111, + 115, + 116, + 32, + 111, + 110, + 32, + 84, + 104, + 101, + 32, + 73, + 109, + 112, + 97, + 99, + 116, + 32, + 111, + 102, + 32, + 65, + 73, + 32, + 111, + 110, + 32, + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 32, + 87, + 114, + 105, + 116, + 105, + 110, + 103 + ] + }, + "cookie": [], + "responseTime": 336, + "responseSize": 59 + }, + "id": "09106092-7d20-4672-8580-19118d162cf9", + "assertions": [ + { + "assertion": "Validate response body", + "skipped": false + }, + { + "assertion": "Response time is less than 1000ms", + "skipped": false + } + ] + }, + { + "cursor": { + "ref": "6d8acd95-f273-47c1-b4b4-3b5c91d9113f", + "length": 8, + "cycles": 1, + "position": 4, + "iteration": 0, + "httpRequestId": "c909bef5-38e5-49a8-b50f-bb0f2e08d094" + }, + "item": { + "id": "b6d2ff2f-baa9-4f3b-bde9-d1e20a8216a9", + "name": "Validate an error when Missing Required Fields", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on the usefulness of Cybersecurity\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "c12d1956-003f-474a-88f5-64f9d080a1df", + "name": "Validate Successful PUT Request for Updating Content Copy", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on the usefulness of Cybersecurity\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "Internal Server Error", + "code": 500, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 21:16:19 GMT" + }, + { + "key": "Content-Length", + "value": "0" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "rndr-id", + "value": "115ee2b6-d459-4ae4" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ab961ae945c933-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": null, + "cookie": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "a7461044-c755-49b8-8580-938a7e4f0358", + "type": "text/javascript", + "packages": {}, + "exec": [ + "\r", + "\r", + "\r", + "// For POST/PUT requests, you might want to add additional headers or validations\r", + "if (pm.request.method === 'POST' || pm.request.method === 'POST') {\r", + " pm.request.headers.add({\r", + " key: 'Accept',\r", + " value: 'plain/text'\r", + " });\r", + " \r", + " // Add timestamp header for request tracking\r", + " pm.request.headers.add({\r", + " key: 'X-Request-Timestamp',\r", + " value: new Date().toISOString()\r", + " });\r", + "}\r", + "\r", + "\r", + "" + ], + "_lastExecutionId": "33aeef2f-0c50-4e60-8d06-bb8e8b5ecfb8" + } + }, + { + "listen": "test", + "script": { + "id": "683b608e-64d4-4d5f-a5f6-836dbaec2145", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the status code\r", + "pm.response.to.have.status(200);\r", + "// Validating the response body\r", + "pm.test(\"Validate response body\", function () {\r", + " pm.response.to.have.body(\"Generate a blog post on the usefulness of Cybersecurity\");\r", + "});\r", + "\r", + "// Validating the response time\r", + "pm.test(\"Response time is less than 1000ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(1000);\r", + "});\r", + "" + ], + "_lastExecutionId": "82b360bf-062c-4055-88f4-88b9923b49bf" + } + } + ] + }, + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "Accept", + "value": "plain/text" + }, + { + "key": "X-Request-Timestamp", + "value": "2025-04-03T23:40:46.387Z" + }, + { + "key": "Content-Type", + "value": "application/json", + "system": true + }, + { + "key": "User-Agent", + "value": "PostmanRuntime/7.39.1", + "system": true + }, + { + "key": "Cache-Control", + "value": "no-cache", + "system": true + }, + { + "key": "Postman-Token", + "value": "aaafe50f-446c-49d8-aec7-9f6847f40412", + "system": true + }, + { + "key": "Host", + "value": "telex-blogger-agent-qdp4.onrender.com", + "system": true + }, + { + "key": "Accept-Encoding", + "value": "gzip, deflate, br", + "system": true + }, + { + "key": "Connection", + "value": "keep-alive", + "system": true + }, + { + "key": "Content-Length", + "value": "186", + "system": true + } + ], + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on the usefulness of Cybersecurity\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": { + "id": "cf10d777-cbc3-4a81-b42b-91f8014ae27c", + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 23:40:46 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "29cc007d-5537-408f" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ac69b69d16cd91-LHR" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "stream": { + "type": "Buffer", + "data": [ + 71, + 101, + 110, + 101, + 114, + 97, + 116, + 101, + 32, + 97, + 32, + 98, + 108, + 111, + 103, + 32, + 112, + 111, + 115, + 116, + 32, + 111, + 110, + 32, + 116, + 104, + 101, + 32, + 117, + 115, + 101, + 102, + 117, + 108, + 110, + 101, + 115, + 115, + 32, + 111, + 102, + 32, + 67, + 121, + 98, + 101, + 114, + 115, + 101, + 99, + 117, + 114, + 105, + 116, + 121 + ] + }, + "cookie": [], + "responseTime": 331, + "responseSize": 55 + }, + "id": "b6d2ff2f-baa9-4f3b-bde9-d1e20a8216a9", + "assertions": [ + { + "assertion": "Validate response body", + "skipped": false + }, + { + "assertion": "Response time is less than 1000ms", + "skipped": false + } + ] + }, + { + "cursor": { + "ref": "3d321417-f66f-4c78-a714-5c0a3b10da18", + "length": 8, + "cycles": 1, + "position": 5, + "iteration": 0, + "httpRequestId": "540a76f0-5cea-4f00-bf17-ef04e7ce6c91" + }, + "item": { + "id": "10d30ec6-3336-41ff-8bf7-a641582f8027", + "name": "Validate response body", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "04a0b139-c563-4ae6-a355-9bdc73c6b977", + "name": "Validate response body", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 21:35:49 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "736ce15b-ff8f-47a6" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92abb2aa8e0405c3-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "Generate a blog post on The Impact of AI on Content Writing", + "cookie": [] + } + ], + "event": [ + { + "listen": "test", + "script": { + "id": "49a659a0-c72f-434c-a82d-9fdbd60745f2", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the response body\r", + "pm.test(\"Response body should not be empty\", function () {\r", + " pm.expect(pm.response.text()).not.eql(\"\");\r", + "});" + ], + "_lastExecutionId": "b7f31737-2227-4c74-9b72-9d0de09dbf0f" + } + } + ] + }, + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "system": true + }, + { + "key": "User-Agent", + "value": "PostmanRuntime/7.39.1", + "system": true + }, + { + "key": "Accept", + "value": "*/*", + "system": true + }, + { + "key": "Cache-Control", + "value": "no-cache", + "system": true + }, + { + "key": "Postman-Token", + "value": "00d797c7-c421-4781-93f8-bedf2ee59b82", + "system": true + }, + { + "key": "Host", + "value": "telex-blogger-agent-qdp4.onrender.com", + "system": true + }, + { + "key": "Accept-Encoding", + "value": "gzip, deflate, br", + "system": true + }, + { + "key": "Connection", + "value": "keep-alive", + "system": true + }, + { + "key": "Content-Length", + "value": "1642", + "system": true + } + ], + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": { + "id": "0a3b02ca-c8c0-4747-8044-fdd03e1abb55", + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 23:40:47 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "533a6d65-31a5-4ff1" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ac69b94e4acd91-LHR" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "stream": { + "type": "Buffer", + "data": [ + 71, + 101, + 110, + 101, + 114, + 97, + 116, + 101, + 32, + 97, + 32, + 98, + 108, + 111, + 103, + 32, + 112, + 111, + 115, + 116, + 32, + 111, + 110, + 32, + 84, + 104, + 101, + 32, + 73, + 109, + 112, + 97, + 99, + 116, + 32, + 111, + 102, + 32, + 65, + 73, + 32, + 111, + 110, + 32, + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 32, + 87, + 114, + 105, + 116, + 105, + 110, + 103 + ] + }, + "cookie": [], + "responseTime": 317, + "responseSize": 59 + }, + "id": "10d30ec6-3336-41ff-8bf7-a641582f8027", + "assertions": [ + { + "assertion": "Response body should not be empty", + "skipped": false + } + ] + }, + { + "cursor": { + "ref": "8bc7fd13-0069-425d-8700-6144450a6ab7", + "length": 8, + "cycles": 1, + "position": 6, + "iteration": 0, + "httpRequestId": "c0924d6e-20a1-4896-88c2-2592effb8ab0" + }, + "item": { + "id": "4579fe9a-2a18-4486-95a5-36968af630b1", + "name": "Validate response time", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "ed92c17c-97f3-49de-a865-2170a3dd4266", + "name": "Validate response time", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 21:37:30 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "b9603fe4-f449-44ba" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92abb5220e63d6a9-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "Generate a blog post on The Impact of AI on Content Writing", + "cookie": [] + } + ], + "event": [ + { + "listen": "test", + "script": { + "id": "dc8fa591-f6e1-4da9-9480-7c93922c17cc", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the response body\r", + "pm.test(\"Response body should not be empty\", function () {\r", + " pm.expect(pm.response.text()).not.eql(\"\");\r", + "});\r", + "pm.test(\"Response time is less than 500ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(500);\r", + "});\r", + "" + ], + "_lastExecutionId": "3a44a172-37c0-455b-a6cb-7753d824ee43" + } + } + ] + }, + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "system": true + }, + { + "key": "User-Agent", + "value": "PostmanRuntime/7.39.1", + "system": true + }, + { + "key": "Accept", + "value": "*/*", + "system": true + }, + { + "key": "Cache-Control", + "value": "no-cache", + "system": true + }, + { + "key": "Postman-Token", + "value": "fe99baa3-2c35-45bb-a47d-f966dfa1b170", + "system": true + }, + { + "key": "Host", + "value": "telex-blogger-agent-qdp4.onrender.com", + "system": true + }, + { + "key": "Accept-Encoding", + "value": "gzip, deflate, br", + "system": true + }, + { + "key": "Connection", + "value": "keep-alive", + "system": true + }, + { + "key": "Content-Length", + "value": "1642", + "system": true + } + ], + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": { + "id": "342d9c41-b3ef-4679-9670-e494bd9efb51", + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 23:40:47 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "0d9cee93-1aaa-4dbe" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ac69bb9f40cd91-LHR" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "stream": { + "type": "Buffer", + "data": [ + 71, + 101, + 110, + 101, + 114, + 97, + 116, + 101, + 32, + 97, + 32, + 98, + 108, + 111, + 103, + 32, + 112, + 111, + 115, + 116, + 32, + 111, + 110, + 32, + 84, + 104, + 101, + 32, + 73, + 109, + 112, + 97, + 99, + 116, + 32, + 111, + 102, + 32, + 65, + 73, + 32, + 111, + 110, + 32, + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 32, + 87, + 114, + 105, + 116, + 105, + 110, + 103 + ] + }, + "cookie": [], + "responseTime": 317, + "responseSize": 59 + }, + "id": "4579fe9a-2a18-4486-95a5-36968af630b1", + "assertions": [ + { + "assertion": "Response body should not be empty", + "skipped": false + }, + { + "assertion": "Response time is less than 500ms", + "skipped": false + } + ] + }, + { + "cursor": { + "ref": "8f76674f-e3f3-48de-8544-cff3aa6e1d19", + "length": 8, + "cycles": 1, + "position": 7, + "iteration": 0, + "httpRequestId": "199ad222-ffce-425d-ac36-015e7886eeed" + }, + "item": { + "id": "83dc779c-b685-4cf8-9f1b-56a40ffedcd7", + "name": "Validate required org id and channel id", + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": [ + { + "_": { + "postman_previewlanguage": "plain" + }, + "id": "e2e985f2-5945-49c8-83f5-a3fc5828ab6a", + "name": "Validate required org id and channel id", + "originalRequest": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 21:43:59 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "9839cd09-b395-402b" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92abbea52d4df493-IAD" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "body": "Generate a blog post on The Impact of AI on Content Writing", + "cookie": [] + } + ], + "event": [ + { + "listen": "test", + "script": { + "id": "916642df-994a-49ac-887a-7082b62a7f69", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Validating the response body\r", + "pm.test(\"Response body should not be empty\", function () {\r", + " pm.expect(pm.response.text()).not.eql(\"\");\r", + "});\r", + "pm.test(\"Response time is less than 500ms\", function () {\r", + " pm.expect(pm.response.responseTime).to.be.below(500);\r", + "});\r", + "" + ], + "_lastExecutionId": "5e77306b-7529-4d17-8e16-34863b5faab0" + } + }, + { + "listen": "prerequest", + "script": { + "id": "28404237-f853-4177-9e7e-b04a35530b68", + "type": "text/javascript", + "packages": {}, + "exec": [ + "// Required fields validation\r", + "function validateRequiredFields() {\r", + " let errors = [];\r", + " \r", + " // Check for org_id in either params or body\r", + " const orgId = pm.request.url.query.get('org_id') || \r", + " (pm.request.body && pm.request.body.raw && JSON.parse(pm.request.body.raw).org_id);\r", + " \r", + " if (!orgId) {\r", + " errors.push(\"org_id is required (can be in query params or request body)\");\r", + " }\r", + " \r", + " // Check for channel_id in either params or body\r", + " const channelId = pm.request.url.query.get('channel_id') || \r", + " (pm.request.body && pm.request.body.raw && JSON.parse(pm.request.body.raw).channel_id);\r", + " \r", + " if (!channelId) {\r", + " errors.push(\"channel_id is required (can be in query params or request body)\");\r", + " }\r", + " \r", + " return errors;\r", + "}\r", + "\r", + "// Main execution\r", + "try {\r", + " const validationErrors = validateRequiredFields();\r", + " \r", + " if (validationErrors.length > 0) {\r", + " // For collection-level scripts, we can't prevent the request from sending\r", + " const errorMessage = `Missing required parameters:\\n- ${validationErrors.join(\"\\n- \")}`;\r", + " \r", + " if (isCollectionLevel) {\r", + " console.error(errorMessage);\r", + " pm.environment.set(\"PREREQUEST_VALIDATION_FAILED\", true);\r", + " pm.environment.set(\"VALIDATION_ERRORS\", errorMessage);\r", + " } else {\r", + " // For request-level scripts, we can actually prevent the request\r", + " throw new Error(errorMessage);\r", + " }\r", + " } else {\r", + " pm.environment.unset(\"PREREQUEST_VALIDATION_FAILED\");\r", + " pm.environment.unset(\"VALIDATION_ERRORS\");\r", + " \r", + " // Set default headers if not present\r", + " if (!pm.request.headers.get('Content-Type')) {\r", + " pm.request.headers.add({\r", + " key: 'Content-Type',\r", + " value: 'application/json'\r", + " });\r", + " }\r", + " }\r", + "} catch (error) {\r", + " console.error(\"Pre-request script error:\", error.message);\r", + " throw error; // This will prevent the request from executing\r", + "}" + ], + "_lastExecutionId": "fd2f2f54-9b13-4ba9-9ee4-559278dd99e7" + } + } + ] + }, + "request": { + "url": { + "protocol": "https", + "path": [ + "api", + "v1", + "blogger-agent", + "generate-blog" + ], + "host": [ + "telex-blogger-agent-qdp4", + "onrender", + "com" + ], + "query": [], + "variable": [] + }, + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "User-Agent", + "value": "PostmanRuntime/7.39.1", + "system": true + }, + { + "key": "Accept", + "value": "*/*", + "system": true + }, + { + "key": "Cache-Control", + "value": "no-cache", + "system": true + }, + { + "key": "Postman-Token", + "value": "6c553712-31a9-484f-814b-274f877b0dc4", + "system": true + }, + { + "key": "Host", + "value": "telex-blogger-agent-qdp4.onrender.com", + "system": true + }, + { + "key": "Accept-Encoding", + "value": "gzip, deflate, br", + "system": true + }, + { + "key": "Connection", + "value": "keep-alive", + "system": true + }, + { + "key": "Content-Length", + "value": "1642", + "system": true + } + ], + "method": "POST", + "body": { + "mode": "raw", + "raw": "{\r\n \"message\": \"Generate a blog post on The Impact of AI on Content Writing\",\r\n \"channel_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"org_id\": \"0195bebf-a5e2-7b26-8eb5-a585a61d8188\",\r\n \"settings\": [\r\n {\r\n \"label\": \"company_name\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company name.\",\r\n \"default\": \"Tech Innovators\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_overview\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide a brief overview of the company.\",\r\n \"default\": \"Tech Innovators specializes in AI-powered content solutions.\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"company_website\",\r\n \"type\": \"text\",\r\n \"description\": \"Provide the company's website URL to be included in the blog post conclusion.\",\r\n \"default\": \"https://www.technology-innovators.com\",\r\n \"required\": false\r\n },\r\n {\r\n \"label\": \"tone\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the tone for the blog content.\",\r\n \"options\": [ \"Professional\", \"Casual\", \"Persuasive\", \"Informative\" ],\r\n \"default\": \"Casual\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"blog_length\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Select the preferred blog length.\",\r\n \"options\": [ \"short\", \"medium\", \"long\" ],\r\n \"default\": \"medium\",\r\n \"required\": true\r\n },\r\n {\r\n \"label\": \"format\",\r\n \"type\": \"dropdown\",\r\n \"description\": \"Choose the format for the blog output.\",\r\n \"options\": [ \"Full Article\", \"Outline\", \"Summary\" ],\r\n \"default\": \"Full Article\",\r\n \"required\": false\r\n }\r\n ]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + } + }, + "response": { + "id": "1690d5ad-e939-4276-bdc8-098541f4b578", + "status": "OK", + "code": 200, + "header": [ + { + "key": "Date", + "value": "Thu, 03 Apr 2025 23:40:47 GMT" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Transfer-Encoding", + "value": "chunked" + }, + { + "key": "Connection", + "value": "keep-alive" + }, + { + "key": "Content-Encoding", + "value": "br" + }, + { + "key": "rndr-id", + "value": "741a25a9-0a1e-4dd2" + }, + { + "key": "vary", + "value": "Accept-Encoding" + }, + { + "key": "x-render-origin-server", + "value": "Kestrel" + }, + { + "key": "cf-cache-status", + "value": "DYNAMIC" + }, + { + "key": "Server", + "value": "cloudflare" + }, + { + "key": "CF-RAY", + "value": "92ac69be1852cd91-LHR" + }, + { + "key": "alt-svc", + "value": "h3=\":443\"; ma=86400" + } + ], + "stream": { + "type": "Buffer", + "data": [ + 71, + 101, + 110, + 101, + 114, + 97, + 116, + 101, + 32, + 97, + 32, + 98, + 108, + 111, + 103, + 32, + 112, + 111, + 115, + 116, + 32, + 111, + 110, + 32, + 84, + 104, + 101, + 32, + 73, + 109, + 112, + 97, + 99, + 116, + 32, + 111, + 102, + 32, + 65, + 73, + 32, + 111, + 110, + 32, + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 32, + 87, + 114, + 105, + 116, + 105, + 110, + 103 + ] + }, + "cookie": [], + "responseTime": 318, + "responseSize": 59 + }, + "id": "83dc779c-b685-4cf8-9f1b-56a40ffedcd7", + "assertions": [ + { + "assertion": "Response body should not be empty", + "skipped": false + }, + { + "assertion": "Response time is less than 500ms", + "skipped": false + } + ] + } + ], + "transfers": { + "responseTotal": 3523 + }, + "failures": [], + "error": null + } + } \ No newline at end of file