{"id":154390,"date":"2023-11-10T16:18:27","date_gmt":"2023-11-10T07:18:27","guid":{"rendered":"https:\/\/support.questetra.com\/?p=154390"},"modified":"2023-11-13T16:46:50","modified_gmt":"2023-11-13T07:46:50","slug":"openai-chat-answer-text-prompt-202311","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/openai-chat-answer-text-prompt-202311\/","title":{"rendered":"OpenAI #Chat: Answer Text Prompt"},"content":{"rendered":"\n<h4 class=\"wp-block-heading has-background\" style=\"background-color:#ffccff;margin-top:var(--wp--preset--spacing--30);margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--20);padding-bottom:0;padding-left:var(--wp--preset--spacing--20)\"><strong>OpenAI #Chat: Answer Text Prompt<\/strong><\/h4>\n\n\n\n<p class=\"has-text-align-right has-background has-small-font-size mt-0 pt-0 wp-block-paragraph\" style=\"background-color:#ffccff;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--30);padding-bottom:0;padding-left:var(--wp--preset--spacing--30)\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/openai-chat-answer-text-prompt-202311\/\"><span class=\"material-icons\">translate<\/span> OpenAI #Chat: Text\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u56de\u7b54<\/a><\/p>\n\n\n\n<p class=\"has-background mt-0 pt-0 wp-block-paragraph\" style=\"background-color:#fff0ff;margin-top:0;margin-right:0;margin-bottom:var(--wp--preset--spacing--60);margin-left:0;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--40)\">Generates a response to the Text Prompt. By default, it is generated by accessing \u201cgpt-4-1106-preview MODEL\u201d (can be changed to any MODEL). Text prompts for starting a conversation are defined separately for system messages and user messages. Generally, the system message contains the answer rules and the personality of the answering character, and the user message contains the question text. You can also request multiple answers.<\/p>\n\n\n\n<figure class=\"wp-block-image alignright has-custom-border is-style-default\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABclJREFUWEfN\nV3tQlFUU\/12esiCwrCIhKugiL0VAUASc8pEZmI2K5Wu3MRtDK5Wm0RlndAEbK2VEa\/JRYQZkmu9I\na\/KVvBQfgOKKDwhwDUXQXcTl4QK3uRd2XdhvgbFm6P73fd895\/zOOb\/z+Aj6+JDe2nfflSBqtMds\n2kYngdBgAJ4AEbfLUzWAClBSSCzIWTstDle9n9DQG909Ahj4vcJNZ4k1hCCOAv16qbSJUuy0bsUX\nNYsTH3Qn0y0AcZoijhKaDBD73hg2vUO1hJJP1PLEnebkzQJwSk\/YTkCXvZjhzlIUZEedLGG5kC5B\nAE7p6\/cSkPn\/hXG9Dgr6U50saUFXnSYAevL8Q78IvD08EEMdnKFra8PVx\/exveQ8TleV9ohXKBKd\nALTnHDuENDlY2yI1ag4mu0tR3ViPwkdVcLLphzEuL8ECBPv+ugoLQnC59m9kqkrwVNcsCIhQLDPm\nhAEAZ7sVLTVHuM1h0ZB7j8WxSiU+vnicG3AXOWJj6HTEDPGFFbEwGNQ8a0Tq7Uv4tOiMAAiqtW4h\nUn11GAA4pylSQLCqqwTzfIV\/BN6RjsWDxnrEnNzDja8KiMJyvwkQ29ohr7oSm4vPIae6AjOG+GF1\n4MvwdpRge8kFbCg6LVAc2KqRJ8azDxwAbzIi+qhrnU9198bG0NcgdZSAgCC9tABppQXYFBaNQBc3\nXFdXcwMs\/+yuSqvBrboa+DgNRGpULBysbfBeziFcrr3XCQQBmuwaiIQ1Kw5AnJGwiFKabnxLr2Sw\nvSMOlhdj3vAxOFKpRO7DSiiCpmDPnSvYVHwOMmkIlvuGw8d5IOp1zZwLG4rO8Kgt9RmPFGU2tilz\nTaJACJGpFyVkcADOaYpUELxrfEsRPBVLfcZh18183HpSi+SwaA7gYo0KH\/lH4PNrf0IuHYtgiTuO\nq25y4rH3YQM8cE9bx58XjgjG7tuXsPHqWaE07NbIE5e0A0hfXwAQ1t8N59AUGaT9JVicfQDeTgMM\nABgP4nzD0UYp7jyphcRWBArwUmTEYxGJD4iCZ38xmltbOFChCAC0UCNLCtEDePx8sLRjODpVzlk+\n+bdvOcv1EWAA5NIQbC7O4gYZSTeFvY5Yz9G4oXnIOZFfo8JnodMR6zkKRytvYFneEaFqUGtkSS4d\nABTMiU7nqwlvcsOrL55AU2sLtoW\/wWufNZ7ZnqOw8sIvyHpQzmXWjpmEt7wCOYDIQcNwuEKJ+PxM\n7J+0AEESd3yQdwynqu6YgNDIEolZAMxI8rgY3K6rwcoLmfCwd8K6oCnwd3ZFbZMWcXlHOgGY6xXI\nQbEKYSc882usDIhEfMBEfHMrX5AHRgDWm6SAKdkVORtzvUajol6NFGUOL0OWY9YD2PlSmQt\/sSuv\nEK3uGQdlDGDRiGAkhrzKU2VKRGqcAlMS6nng5+SKhlYdj4Cyo+5ZjndGzMJ0j5G4+1SD8w\/vImLQ\nMJMIbBk3g6dr7ZXfsbesqEsKjEkoUIZ6AF4OLliSc5BHgnlqY2GFR81aWBNL\/FhWiC3KHKwKiOQk\nXGGUgqTC09gyPgZVDfWYeeoH09lA8bwMhRoRA8D6\/\/wRQUguzsJWZQ5CB3jwEnuiaza02A0h0xA9\nxBd3n6qx8Nw+ZLw8D4NFjtxbdo\/xR4iAnRqRuVbMDH4XNQe2llZQFJzEz+XXuGJWeuuCJhsickJ1\nE+sK\/uBlu3tiLFxsRXw+sE7ZtQ0zeZNWzJuRmWHEiMTY72xrx\/PNmoubqD8fxXpO6HeBHRGzMHOo\nH5KvZyPlerZA7Xe8ol2GEXvd3Thmnq0JfIW3WXsrGzja2PLxe6C8GBllhZygS0aGYYLrUORWV0KW\ntd\/sPgCYGccMRHcLibE7UYM8kRQyjU9Ey449oLFFh19VJYZdwZz7ZhcSvUBPK5mxYjYxR4vd8Kyt\nFWful3XjdbtUjyvZcxB9uJS+SCTMs82853qZ\/++PiR5hn\/6aGYe2z35Oe8rvv\/3+D7A\/zj\/ftsWS\nAAAAAElFTkSuQmCC\n\" alt=\"Auto Step icon\" class=\"has-border-color has-ast-global-color-6-border-color\" style=\"border-width:0.5em\"\/><\/figure>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Configs for this Auto Step<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"margin: 0 0 -0.7em 0\">\n<div style=\"margin:4px 0px 1em; border:1px dotted #aaa; padding:4px 0 0 4px\" title=\"Main\"><dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">AuthzConfU1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">U1: Select HTTP_Authz Setting (Secret API Key as &#8220;Fixed Value&#8221;)<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">StrConfA1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">A1: Set SYSTEM Message Prompt<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">StrConfA2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">A2: Set USER Message Prompt<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">StrConfB1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">B1: Set Number of Responses (default 1 upto 4)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfC1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C1: Select STRING where Response1 will be stored (update)<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfC2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C2: Select STRING where Response2 will be stored (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfC3<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C3: Select STRING where Response3 will be stored (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfC4<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C4: Select STRING where Response4 will be stored (update)<\/dd>\n<\/div>\n<div style=\"margin:4px 0px 1em; border:1px dotted #aaa; padding:4px 0 0 4px\" title=\"Advanced\"><dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">StrConfM<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">M: Set MODEL Name (default &#8220;gpt-4-1106-preview&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">StrConfU2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">U2: Set OpenAI Organization ID (&#8220;org-xxxx&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">StrConfU3<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">U3: Set End-User ID for Monitoring or Detecting (&#8220;user123456&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">StrConfB2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">B2: Set Limit of Response Tokens (default 4095)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">StrConfB3<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">B3: Set Stop Sequences for each lines (eg &#8220;.&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfD1<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">D1: Select NUMERIC where PROMPT Tokens will be stored (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfD2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">D2: Select NUM where COMPLETION Tokens will be stored (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfD3<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">D3: Select NUM where Total Tokens will be stored (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">SelectConfD4<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">D4: Select STRING where Finish Reasons will be stored (update)<\/dd>\n<\/div>\n\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Script (click to open)<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ Script Example of Business Process Automation\n\/\/ for &#39;engine type: 3&#39; (&quot;GraalJS standard mode&quot;)\n\/\/ cf. &#39;engine type: 2&#39; (&quot;GraalJS Nashorn compatible mode&quot;) (renamed from &quot;GraalJS&quot; at 20230526)\n\n\/\/\/\/\/\/\/\/ START &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\nmain();\nfunction main(){ \n\n\/\/\/\/\/\/ == Config Retrieving \/ \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 ==\nconst strAuthzSetting           = configs.get      ( &quot;AuthzConfU1&quot; );  \/\/\/ REQUIRED\n  engine.log( &quot; AutomatedTask Config: Authz Setting: &quot; + strAuthzSetting );\nconst strOrgId                  = configs.get      ( &quot;StrConfU2&quot; );    \/\/ NotRequired\n  engine.log( &quot; AutomatedTask Config: OpenAI-Organization: &quot; + strOrgId );\nconst strEndUserId              = configs.get      ( &quot;StrConfU3&quot; ) !== &quot;&quot; ?  \/\/ NotRequired\n                                  configs.get      ( &quot;StrConfU3&quot; ) :\n                                  &quot;m&quot; + processInstance.getProcessModelInfoId().toString(); \/\/ (default)\n  engine.log( &quot; AutomatedTask Config: End User IDs: &quot; + strEndUserId );\n\nconst strModel                  = configs.get      ( &quot;StrConfM&quot; ) !== &quot;&quot; ?   \/\/ NotRequired\n                                  configs.get      ( &quot;StrConfM&quot; ) : &quot;gpt-4-1106-preview&quot;; \/\/ (default)\n  engine.log( &quot; AutomatedTask Config: OpenAI Model: &quot; + strModel );\n\nconst strSystemMsg              = configs.get      ( &quot;StrConfA1&quot; );    \/\/ NotRequired\nconst strUserMsg                = configs.get      ( &quot;StrConfA2&quot; );    \/\/ NotRequired\n  if( strUserMsg === &quot;&quot; && strSystemMsg    === &quot;&quot;){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {A1:SystemMsg} or {A2:UserMsg} required \\n&quot; );\n  }\nconst strChoises                = configs.get      ( &quot;StrConfB1&quot; );    \/\/ NotRequired\nconst numChoises                = isNaN(parseInt(strChoises,10)) ?\n                                  1 : parseInt(strChoises,10);\nconst strLimit                  = configs.get      ( &quot;StrConfB2&quot; );    \/\/ NotRequired\nconst numLimit                  = isNaN(parseInt(strLimit,10)) ?\n                                  4095 : parseInt(strLimit,10);\nconst strStops                  = configs.get      ( &quot;StrConfB3&quot; );    \/\/ NotRequired\nconst arrStops                  = strStops !== &quot;&quot; ?\n                                  strStops.split(&quot;\\n&quot;) : null;\n\nconst strPocketResponse1        = configs.getObject( &quot;SelectConfC1&quot; ); \/\/\/ REQUIRED\nconst strPocketResponse2        = configs.getObject( &quot;SelectConfC2&quot; ); \/\/ NotRequired\nconst strPocketResponse3        = configs.getObject( &quot;SelectConfC3&quot; ); \/\/ NotRequired\nconst strPocketResponse4        = configs.getObject( &quot;SelectConfC4&quot; ); \/\/ NotRequired\nconst numPocketPromptTokens     = configs.getObject( &quot;SelectConfD1&quot; ); \/\/ NotRequired\nconst numPocketCompletionTokens = configs.getObject( &quot;SelectConfD2&quot; ); \/\/ NotRequired\nconst numPocketTotalTokens      = configs.getObject( &quot;SelectConfD3&quot; ); \/\/ NotRequired\nconst strPocketFinishReasons    = configs.getObject( &quot;SelectConfD4&quot; ); \/\/ NotRequired\n\n\n\n\/\/\/\/\/\/ == Data Retrieving \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 ==\n\/\/ (Nothing. Retrieved via Expression Language in Config Retrieving)\n\n\n\/\/\/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\n\n\/\/\/\/ OpenAI API &gt; Documentation &gt; API REFERENCE &gt; CHAT\n\/\/\/\/ https:\/\/platform.openai.com\/docs\/api-reference\/chat\n\n\/\/\/ prepare json\nlet strJson = {};\n    strJson.model = strModel;\n    strJson.user  = strEndUserId;\n    \/\/  strJson.response_format = {};\n    \/\/  strJson.response_format.type = &quot;json_object&quot;; \/\/ valid JSON mode\n    \/\/  To Make response_content JSON (&#39;json&#39; required in Request Msg)\n    strJson.n          = numChoises;\n    strJson.max_tokens = numLimit;\n    if ( arrStops !== null ){\n      strJson.stop = [];\n      \/\/ Up to 4 sequences where the API will stop generating further tokens.\n      const numMaxSeq = 4;\n      for ( let i = 0; i &lt; arrStops.length && i &lt; numMaxSeq; i++ ){\n        if ( arrStops[i] === &quot;- - -&quot; ){\n          strJson.stop.push ( &quot;\\n&quot; );\n        }else{\n          strJson.stop.push ( arrStops[i] );\n        }\n      }\n    }\n    strJson.messages = [];\n    if ( strSystemMsg !==&quot;&quot; ) {\n      let objSystemMsg = {};\n          objSystemMsg.role = &quot;system&quot;;\n          objSystemMsg.content = strSystemMsg;\n      strJson.messages.push ( objSystemMsg );\n    }\n    if ( strUserMsg !==&quot;&quot; ) {\n      let objUserMsg = {};\n          objUserMsg.role = &quot;user&quot;;\n          objUserMsg.content = strUserMsg;\n      strJson.messages.push ( objUserMsg );\n    }\n\n\/\/\/ prepare request1\nlet request1Uri = &quot;https:\/\/api.openai.com\/v1\/chat\/completions&quot;;\nlet request1 = httpClient.begin(); \/\/ HttpRequestWrapper\n    request1 = request1.authSetting( strAuthzSetting ); \/\/ with &quot;Authorization: Bearer XX&quot;\n    if ( strOrgId !== &quot;&quot; ){\n      request1 = request1.header( &quot;OpenAI-Organization&quot;, strOrgId );\n    }\n    request1 = request1.body( JSON.stringify( strJson ), &quot;application\/json&quot; );\n\n\/\/\/ try request1\nconst response1     = request1.post( request1Uri ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest1 Start: &quot; + request1Uri );\nconst response1Code = response1.getStatusCode() + &quot;&quot;; \/\/ JavaNum to string\nconst response1Body = response1.getResponseAsString();\nengine.log( &quot; AutomatedTask ApiResponse1 Status: &quot; + response1Code );\nif( response1Code !== &quot;200&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    response1Code + &quot;\\n&quot; + response1Body + &quot;\\n&quot; );\n}\n\n\n\/\/\/ parse response1\n\/* engine.log( response1Body ); \/\/ debug\n{\n  &quot;id&quot;: &quot;chatcmpl-8JF1v1NheMIZfeX2AcBjKunKUMN8p&quot;,\n  &quot;object&quot;: &quot;chat.completion&quot;,\n  &quot;created&quot;: 1699596699,\n  &quot;model&quot;: &quot;gpt-4-1106-preview&quot;,\n  &quot;choices&quot;: [\n    {\n      &quot;index&quot;: 0,\n      &quot;message&quot;: {\n        &quot;role&quot;: &quot;assistant&quot;,\n        &quot;content&quot;: &quot;\u304a\u5ba2\u69d8\u3001\u3053\u306e\u8a71\u984c\u306b\u3064 ... ... &quot;\n      },\n      &quot;finish_reason&quot;: &quot;stop&quot;\n    },\n    {\n      &quot;index&quot;: 1,\n      &quot;message&quot;: {\n        &quot;role&quot;: &quot;assistant&quot;,\n        &quot;content&quot;: &quot;\u3053\u306e\u5ea6\u306e\u65b0\u805e\u8a18\u4e8b\u306b\u95a2\u3057 ... ... &quot;\n      },\n      &quot;finish_reason&quot;: &quot;stop&quot;\n    }\n  ],\n  &quot;usage&quot;: {\n    &quot;prompt_tokens&quot;: 1678,\n    &quot;completion_tokens&quot;: 1401,\n    &quot;total_tokens&quot;: 3079\n  },\n  &quot;system_fingerprint&quot;: &quot;fp_a24b4d720c&quot;\n}\n*\/\nconst response1Obj = JSON.parse( response1Body );\n\nlet arrFinishReasons = [];\nfor ( let i = 0; i &lt; response1Obj.choices.length; i++ ){\n  arrFinishReasons.push ( response1Obj.choices[i].finish_reason );\n}\n\n\n\/\/\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\n\nif( strPocketResponse1 !== null ){\n  engine.setData( strPocketResponse1,\n                  response1Obj.choices[0]?.message.content ?? &quot;&quot;\n                );  \/\/ optional chaining - nullish coalescing\n}\nif( strPocketResponse2 !== null ){\n  engine.setData( strPocketResponse2, response1Obj.choices[1]?.message.content ?? &quot;&quot; );\n}\nif( strPocketResponse3 !== null ){\n  engine.setData( strPocketResponse3, response1Obj.choices[2]?.message.content ?? &quot;&quot; );\n}\nif( strPocketResponse4 !== null ){\n  engine.setData( strPocketResponse4, response1Obj.choices[3]?.message.content ?? &quot;&quot; );\n}\n\nif( numPocketPromptTokens !== null ){\n  engine.setData( numPocketPromptTokens, new java.math.BigDecimal(\n                  response1Obj.usage.prompt_tokens ?? 0\n                ));\n}\nif( numPocketCompletionTokens !== null ){\n  engine.setData( numPocketCompletionTokens, new java.math.BigDecimal(\n                  response1Obj.usage.completion_tokens ?? 0\n                ));\n}\nif( numPocketTotalTokens !== null ){\n  engine.setData( numPocketTotalTokens, new java.math.BigDecimal(\n                  response1Obj.usage.total_tokens ?? 0\n                ));\n}\n\/\/ &quot;??&quot;: Nullish coalescing operator (ES11)\n\/\/ https:\/\/developer.mozilla.org\/docs\/Web\/JavaScript\/Reference\/Operators\/Nullish_coalescing\n\nif( strPocketFinishReasons !== null ){\n  engine.setData( strPocketFinishReasons, arrFinishReasons.join(&#39;\\n&#39;) );\n}\n\n} \/\/\/\/\/\/\/\/ END &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\n\/*\nNotes:\n- This [Automated Step] obtains the Text Response via OpenAI API (Chat endpoint).\n    - Up to 4 Text can be genarated (default: 1)\n- If place this [Automated Atep] in the workflow diagram, communication will occur every time a process arrives.\n    - Request from the Questetra BPM Suite server to the OpenAI server.\n    - Analyzes the response from the OpenAI server and stores the necessary information.\n- [HTTP Authz Settings] is required for workflow apps that include this [Automated Step].\n    - An API key is required to use OpenAI API. Please obtain an API key in advance.\n        - https:\/\/platform.openai.com\/api-keys\n    - Set &#39;Secret API Key&#39; as communication token. [HTTP Authz Settings] &gt; [Token Fixed Value]\n- Model endpoint compatibility (as of Nov 2023)\n    - `gpt-4` (dated model releases)\n    - `gpt-4-1106-preview`\n    - `gpt-4-32k` (dated model releases)\n    - `gpt-3.5-turbo` (dated model releases)\n    - `gpt-3.5-turbo-16k` (dated model releases)\n    - fine-tuned versions of `gpt-3.5-turbo`\n    - see: https:\/\/platform.openai.com\/docs\/models\/model-endpoint-compatibility (\/v1\/chat\/completions)\n- GPT-4 Turbo with 128K context\n    - `gpt-4-1106-preview`: a preview of the next generation of GPT-4 (GPT-4 Turbo)\n        - the first version of GPT-4 in March 2023 (available to all developers in July 2023)\n    - has knowledge of world events up to April 2023.\n        - CEO Altman, &quot;We will try to never let it get that out of date again.&quot; \n    - has a 128k context window so it can fit the equivalent of more than 300 pages of text in a single prompt.\n    - at a 3x cheaper price for input tokens and a 2x cheaper price for output tokens compared to GPT-4.\n\nAPPENDIX\n- Large amount of allowable response sentences to be generated may exceed the system limit.\n    - Generation will be aborted if the allowable amount is reached.\n        - `&quot;finish_reason&quot;:&quot;length&quot;,`\n        - If a large number is set for &quot;Number of Responses,&quot; the response is more likely to be interrupted.\n    - For English, one word or symbol often counts as one token.\n        - For average English, it is about 1 token for 4 characters.\n        - In Japanese, a single character may be divided into multiple tokens.\n        - In the case of average Japanese, a single character is about one token.\n    - You can check the approximate number of word tokens at tokenizer.\n        - https:\/\/platform.openai.com\/tokenizer\n- Stop Sequences can be set up to four (invalid after the fifth line)\n    - If set `\\t` or other characters, they will be escaped.\n    - To set a newline code (`\\n`), set `- - -`. (experimental)\n        - The response will always be a single line.\n- Note that the workflow app ID is automatically assigned to the `user` parameter of the OpenAI API. (experimental)\n    - `processInstance.getProcessModelInfoId()`\n- In settings that refer to numeric type data, be careful not to mix in digit separators.\n    - The formatting function `#sformat` is useful. (Java String.format)\n    - e.g. `#{#sformat(&quot;%1.1f&quot;, #q_numeric)}` (rounded to one decimal place)\n    - &quot;R2272: Output of Strings via EL&quot;\n        - https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272-Output-of-Strings-via-EL-syntax\n- If the number of responses is set to more than one, &quot;Finish Reasons&quot; will be in multiple lines.\n     - If multiple lines are expected, set the data item to be stored as a multiline string.\n\nNotes-ja:\n- \u3053\u306e\uff3b\u81ea\u52d5\u5de5\u7a0b\uff3d\u306f\u3001OpenAI API \uff08Chat \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff09\u3092\u901a\u3058\u3066\u3001\u56de\u7b54\u6587\u7ae0\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n    - \u3053\u306e\uff3b\u81ea\u52d5\u5de5\u7a0b\uff3d\u3067\u751f\u6210\u3067\u304d\u308b\u6587\u7ae0\u306f\u6700\u59274\u3064\u3067\u3059\u3002\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\uff1a\uff11\uff09\n- \u3053\u306e\uff3b\u81ea\u52d5\u5de5\u7a0b\uff3d\u3092\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u56f3\u306b\u914d\u7f6e\u3059\u308c\u3070\u3001\u6848\u4ef6\u5230\u9054\u306e\u5ea6\u306b\u901a\u4fe1\u304c\u767a\u751f\u3057\u307e\u3059\u3002\n    - Questetra BPM Suite \u30b5\u30fc\u30d0\u304b\u3089 OpenAI \u30b5\u30fc\u30d0\u306b\u5bfe\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u307e\u3059\u3002\n    - OpenAI \u30b5\u30fc\u30d0\u304b\u3089\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u89e3\u6790\u3057\u3001\u5fc5\u8981\u60c5\u5831\u3092\u683c\u7d0d\u3057\u307e\u3059\u3002\n- \u3053\u306e\uff3b\u81ea\u52d5\u5de5\u7a0b\uff3d\u3092\u542b\u3080\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30a2\u30d7\u30ea\u306b\u306f\u3001\uff3bHTTP \u8a8d\u8a3c\u8a2d\u5b9a\uff3d\u304c\u5fc5\u8981\u3067\u3059\u3002\n    - OpenAI API \u306e\u5229\u7528\u306b\u306f API key \u304c\u5fc5\u8981\u3067\u3059\u3002\u3042\u3089\u304b\u3058\u3081 API Key \u3092\u53d6\u5f97\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\n        - https:\/\/platform.openai.com\/api-keys\n    - &#39;Secret API Key&#39; \u3092\u901a\u4fe1\u30c8\u30fc\u30af\u30f3\u3068\u3057\u3066\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002\uff3bHTTP \u8a8d\u8a3c\u8a2d\u5b9a\uff3d\uff1e\uff3b\u30c8\u30fc\u30af\u30f3\u76f4\u63a5\u6307\u5b9a\uff3d\n- \u5bfe\u5fdc MODEL (2023\u5e7411\u6708\u73fe\u5728)\n    - `gpt-4` (dated model releases)\n    - `gpt-4-1106-preview`\n    - `gpt-4-32k` (dated model releases)\n    - `gpt-3.5-turbo` (dated model releases)\n    - `gpt-3.5-turbo-16k` (dated model releases)\n    - fine-tuned versions of `gpt-3.5-turbo`\n    - see: https:\/\/platform.openai.com\/docs\/models\/model-endpoint-compatibility (\/v1\/chat\/completions)\n- 128K \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u5099\u3048\u305f GPT-4 Turbo \u3068\u306f\uff1f\n    - `gpt-4-1106-preview`: \u6b21\u4e16\u4ee3 GPT-4 (GPT-4 Turbo) \u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u7248\n        - GPT-4 \u306e\u521d\u7248\u306f 2023\u5e743\u6708\u30ea\u30ea\u30fc\u30b9 (2023\u5e747\u6708\u306b\u5168\u958b\u767a\u8005\u304c\u5229\u7528\u53ef\u80fd)\n    - 2023\u5e744\u6708\u307e\u3067\u306e\u51fa\u6765\u4e8b\u306b\u77e5\u8b58\u304c\u3042\u308b\u3002\n        - \u30a2\u30eb\u30c8\u30de\u30f3CEO\u3001\u300c2\u5ea6\u3068\u6642\u4ee3\u9045\u308c\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u300d\n    - 128k \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u3001300\u30da\u30fc\u30b8\u3092\u8d85\u3048\u308b\u30c6\u30ad\u30b9\u30c8\u306b\u76f8\u5f53\u3059\u308b\u60c5\u5831\u30921\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u53ce\u7d0d\u53ef\u3002\n    - GPT-4 \u3068\u6bd4\u8f03\u3057\u3066\u3001\u5165\u529b\u30c8\u30fc\u30af\u30f3\u4fa1\u683c\u304c3\u500d\u3001\u51fa\u529b\u30c8\u30fc\u30af\u30f3\u306e\u4fa1\u683c\u304c2\u500d\u3001\u5b89\u304f\u306a\u3063\u305f\u3002\n\nAPPENDIX-ja\n- \u30ec\u30b9\u30dd\u30f3\u30b9\u6587\u306e\u751f\u6210\u8a31\u5bb9\u91cf\u3092\u5927\u304d\u304f\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u3001\u30b7\u30b9\u30c6\u30e0\u5236\u9650\u3092\u8d85\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\n    - \u6587\u7ae0\u306e\u9014\u4e2d\u3067\u3042\u3063\u3066\u3082\u8a31\u5bb9\u91cf\u306b\u5230\u9054\u3059\u308c\u3070\u751f\u6210\u304c\u4e2d\u65ad\u3055\u308c\u307e\u3059\u3002\n        - `&quot;finish_reason&quot;:&quot;length&quot;,`\n        - &quot;\u30ec\u30b9\u30dd\u30f3\u30b9\u6570&quot; \u306b\u5927\u304d\u306a\u6570\u5b57\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3068\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u4e2d\u65ad\u306e\u53ef\u80fd\u6027\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002\n    - \u82f1\u8a9e\u306e\u5834\u5408\u3001\u5358\u8a9e\u3084\u8a18\u53f7\u3054\u3068\u306b1\u30c8\u30fc\u30af\u30f3\u306b\u306a\u308a\u307e\u3059\u3002\n        - \u5e73\u5747\u7684\u306a\u82f1\u8a9e\u306e\u5834\u5408\u30014\u6587\u5b57\u30671\u30c8\u30fc\u30af\u30f3\u7a0b\u5ea6\u306b\u306a\u308a\u307e\u3059\u3002\n        - \u65e5\u672c\u8a9e\u306e\u5834\u5408\u30011\u6587\u5b57\u304c\u8907\u6570\u30c8\u30fc\u30af\u30f3\u306b\u5206\u5272\u3055\u308c\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\n        - \u5e73\u5747\u7684\u306a\u65e5\u672c\u8a9e\u306e\u5834\u5408\u30011\u6587\u5b57\u30671\u30c8\u30fc\u30af\u30f3\u7a0b\u5ea6\u306b\u306a\u308a\u307e\u3059\u3002\n    - \u30ef\u30fc\u30c9\u30c8\u30fc\u30af\u30f3\u6570\u306e\u76ee\u5b89\u306f tokenizer \u306b\u3066\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\n        - https:\/\/platform.openai.com\/tokenizer\n- &quot;\u4e2d\u65ad\u6587\u5b57\u5217&quot; \u3068\u3057\u3066\u30bb\u30c3\u30c8\u3067\u304d\u308b\u6587\u7bc0\u306f\uff14\u3064\u307e\u3067\u3067\u3059\u3002\uff085\u884c\u76ee\u4ee5\u964d\u306f\u7121\u52b9\uff09\n    - &quot;\u4e2d\u65ad\u6587\u5b57\u5217&quot; \u306b `\\t` \u7b49\u3092\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u3001\u30a8\u30b9\u30b1\u30fc\u30d7\u51e6\u7406\u3055\u308c\u307e\u3059\u3002\n    - &quot;\u4e2d\u65ad\u6587\u5b57\u5217&quot; \u306b\u6539\u884c\u30b3\u30fc\u30c9\uff08`\\n`\uff09\u3092\u30bb\u30c3\u30c8\u3057\u305f\u3044\u5834\u5408\u3001`- - -` \u3092\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002\uff08\u8a66\u9a13\u7684\uff09\n        - \u30ec\u30b9\u30dd\u30f3\u30b9\u306f\u5e38\u306b\u4e00\u884c\u306b\u306a\u308a\u307e\u3059\u3002\n- \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30a2\u30d7\u30eaID\u304c\u3001OpenAI API \u306e `user` \u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u81ea\u52d5\u7684\u306b\u4ee3\u5165\u3055\u308c\u307e\u3059\u3002\uff08\u8a66\u9a13\u7684\uff09\n    - `processInstance.getProcessModelInfoId()`\n- \u6570\u5024\u578b\u30c7\u30fc\u30bf\u3092\u53c2\u7167\u3059\u308b\u8a2d\u5b9a\u3067\u306f\u3001\u6841\u533a\u5207\u308a\u6587\u5b57\u304c\u6df7\u5165\u3057\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n    - \u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u95a2\u6570 `#sformat` \u3092\u4f7f\u3046\u3068\u4fbf\u5229\u3067\u3059\u3002\uff08Java String.format\uff09\n    - e.g. `#{#sformat(&quot;%1.1f&quot;, #q_numeric)}` \uff08\u5c0f\u6570\u7b2c\u4e00\u4f4d\u307e\u3067\u56db\u6368\u4e94\u5165\uff09\n    - &quot;R2272: \u6587\u5b57\u5217\u3068\u3057\u3066\u306e\u51fa\u529b&quot;\n        - https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272\n- \u30ec\u30b9\u30dd\u30f3\u30b9\u6570\u306e\u8a2d\u5b9a\u304c\u8907\u6570\u306e\u5834\u5408\u3001&quot;\u751f\u6210\u7d42\u4e86\u7406\u7531&quot; \u304c\u8907\u6570\u884c\u306b\u306a\u308a\u307e\u3059\u3002\n    - \u8907\u6570\u884c\u304c\u60f3\u5b9a\u3055\u308c\u308b\u5834\u5408\u3001\u683c\u7d0d\u3059\u308b\u30c7\u30fc\u30bf\u9805\u76ee\u306f\u8907\u6570\u884c\u6587\u5b57\u5217\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n*\/\n\n<\/code><\/pre><\/div>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">Download<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1KPefTzLTV6GFYEN6oZTmcAt_ZrZggwo6\/view?usp=drivesdk\" target=\"_blank\">openai-chat-answer-text-prompt-202311.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2023-11-10 (C) Questetra, Inc. (MIT License)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"has-small-font-size\" style=\"text-align: right;\"><div style=\"display: inline-block; background: #FBE7DD; text-align: center;\">\n<span class=\"material-icons\">warning<\/span> Freely modifiable JavaScript (ECMAScript) code. No warranty of any kind.<br>\n(Installing <em><strong>Addon Auto-Steps<\/strong><\/em> are available only on the <em><strong><span style=\"color: #1970B9\">Professional<\/span><\/strong><\/em> edition.)\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">Notes<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This [Automated Step] obtains the Text Response via OpenAI API (Chat endpoint).\n<ul class=\"wp-block-list\">\n<li>Up to 4 sentences can be generated (default: 1)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If you place this [Automated Step] in the workflow diagram, communication will occur every time a process arrives.\n<ul class=\"wp-block-list\">\n<li>Requests from the Questetra BPM Suite server to the OpenAI server.<\/li>\n\n\n\n<li>Analyzes the response from the OpenAI server and stores the necessary information.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>[HTTP Authz Settings] are required for workflow apps that include this [Automated Step].\n<ul class=\"wp-block-list\">\n<li>An API key is required to use OpenAI API. Please obtain an API key in advance.\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/platform.openai.com\/api-keys\" rel=\"nofollow\">https:\/\/platform.openai.com\/api-keys<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Set &#8216;Secret API Key&#8217; as the communication token. [HTTP Authz Settings] &gt; [Token Fixed Value]<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Model endpoint compatibility (as of Nov 2023)\n<ul class=\"wp-block-list\">\n<li><code>gpt-4<\/code> (dated model releases)<\/li>\n\n\n\n<li><code>gpt-4-1106-preview<\/code><\/li>\n\n\n\n<li><code>gpt-4-32k<\/code> (dated model releases)<\/li>\n\n\n\n<li><code>gpt-3.5-turbo<\/code> (dated model releases)<\/li>\n\n\n\n<li><code>gpt-3.5-turbo-16k<\/code> (dated model releases)<\/li>\n\n\n\n<li>Fine-tuned versions of <code>gpt-3.5-turbo<\/code><\/li>\n\n\n\n<li>See: <a href=\"https:\/\/platform.openai.com\/docs\/models\/model-endpoint-compatibility\" rel=\"nofollow\">https:\/\/platform.openai.com\/docs\/models\/model-endpoint-compatibility<\/a> (\/v1\/chat\/completions)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>GPT-4 Turbo with 128K context\n<ul class=\"wp-block-list\">\n<li><code>gpt-4-1106-preview<\/code>: a preview of the next generation of GPT-4 (GPT-4 Turbo)\n<ul class=\"wp-block-list\">\n<li>The first version of GPT-4 in March 2023 (available to all developers in July 2023)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Has knowledge of world events up to April 2023.\n<ul class=\"wp-block-list\">\n<li>CEO Altman, &#8220;We will try to never let it get that out of date again.&#8221;<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Has a 128k context window so it can fit the equivalent of more than 300 pages of text in a single prompt.<\/li>\n\n\n\n<li>Compared to GPT-4, the input token price is 3 times cheaper and the output token price is 2 times cheaper.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">Capture<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?ssl=1\" target=\"_blank\" rel=\"noreferrer noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" data-attachment-id=\"154386\" data-permalink=\"https:\/\/support.questetra.com\/en\/incident\/trouble-20240124\/attachment\/openai-chat-answer-text-prompt-202311-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"openai-chat-answer-text-prompt-202311-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=1200%2C675&#038;ssl=1\" alt=\"Creates a response for a text-only prompt. By default &quot;gpt-4-1106-preview MODEL&quot;, but available any MODEL by config. Text Prompt for starting a conversation is set separately for &quot;system message&quot; (contains rules or personality) and &quot;user message&quot;.\" class=\"wp-image-154386\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border is-style-rounded is-style-rounded--1\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-config-ja.png?ssl=1\" target=\"_blank\" rel=\"noreferrer noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"369\" height=\"630\" data-attachment-id=\"154384\" data-permalink=\"https:\/\/support.questetra.com\/en\/incident\/trouble-20240124\/attachment\/openai-chat-answer-text-prompt-202311-config-ja\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-config-ja.png?fit=675%2C1153&amp;ssl=1\" data-orig-size=\"675,1153\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"openai-chat-answer-text-prompt-202311-config-ja\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-config-ja.png?fit=369%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-config-ja.png?resize=369%2C630&#038;ssl=1\" alt=\"\" class=\"has-border-color wp-image-154384\" style=\"border-color:#009900;border-width:3px;border-radius:9px\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-config-ja.png?resize=369%2C630&amp;ssl=1 369w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-config-ja.png?resize=184%2C315&amp;ssl=1 184w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-config-ja.png?w=675&amp;ssl=1 675w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">Appendix<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Setting a large response sentences generation capacity may exceed the system limit.\n<ul class=\"wp-block-list\">\n<li>Generation will be aborted if the limit is reached.\n<ul class=\"wp-block-list\">\n<li><code>\"finish_reason\":\"length\",<\/code><\/li>\n\n\n\n<li>If a large number is set for &#8220;Number of Responses,&#8221; the response is more likely to be interrupted.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>For English, one word or symbol often counts as one token.\n<ul class=\"wp-block-list\">\n<li>For average English, it is about 1 token for 4 characters.<\/li>\n\n\n\n<li>In Japanese, a single character may be divided into multiple tokens.<\/li>\n\n\n\n<li>In the case of average Japanese, a single character is about one token.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>You can check the approximate number of word tokens at tokenizer.\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/platform.openai.com\/tokenizer\" rel=\"nofollow\">https:\/\/platform.openai.com\/tokenizer<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Up to four Stop Sequences can be set (invalid after the fifth line)\n<ul class=\"wp-block-list\">\n<li>If you set <code>\\t<\/code> or other characters, they will be escaped.<\/li>\n\n\n\n<li>To set a newline code (<code>\\n<\/code>), set <code>- - -<\/code>. (experimental)\n<ul class=\"wp-block-list\">\n<li>The response will always be a single line.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Note that the workflow app ID is automatically assigned to the <code>user<\/code> parameter of the OpenAI API. (experimental)\n<ul class=\"wp-block-list\">\n<li><code>processInstance.getProcessModelInfoId()<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>In settings that refer to numeric type data, be careful not to mix in digit separators.\n<ul class=\"wp-block-list\">\n<li>The formatting function <code>#sformat<\/code> is useful. (Java String.format)<\/li>\n\n\n\n<li>e.g. <code>#{#sformat(\"%1.1f\", #q_numeric)}<\/code> (rounded to one decimal place)<\/li>\n\n\n\n<li>&#8220;R2272: Output of Strings via EL&#8221;\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272-Output-of-Strings-via-EL-syntax\" rel=\"nofollow\">https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272-Output-of-Strings-via-EL-syntax<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If the number of responses is set to more than one, the Generation Termination reason will be on multiple lines.\n<ul class=\"wp-block-list\">\n<li>If multiple lines are expected, set the data item to be a multiline string.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--60)\"><span style=\"text-decoration: underline;\">See Also<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"M6iPz30Ip4\"><a href=\"http:\/\/support.questetra.com\/en\/addons\/openai-chat-answer-prompt-with-images-202311\/\">OpenAI #Chat: Answer Prompt with Images<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;OpenAI #Chat: Answer Prompt with Images&#8221; &#8212; Questetra Support\" src=\"http:\/\/support.questetra.com\/addons\/openai-chat-answer-prompt-with-images-202311\/embed\/#?secret=clGdTSmc2R#?secret=M6iPz30Ip4\" data-secret=\"M6iPz30Ip4\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Generates a response to the Text Prompt. By default, it is generated by accessing \u201cgpt-4-1106-preview MODEL\u201d (can be changed to any MODEL). Text prompts for starting a conversation are defined separately for system messages and user messages. Generally, the system message contains the answer rules and the personality of the answering character, and the user message contains the question text.<\/p>\n","protected":false},"author":2,"featured_media":154386,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[168],"tags":[3429],"class_list":["post-154390","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-openai-api"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-text-prompt-202311-en.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/en\/author\/imamuragenichi\/"},"uagb_comment_info":0,"uagb_excerpt":"Generates a response to the Text Prompt. By default, it is generated by accessing \u201cgpt-4-1106-preview MODEL\u201d (can be changed to any MODEL). Text prompts for starting a conversation are defined separately for system messages and user messages. Generally, the system message contains the answer rules and the personality of the answering character, and the user&hellip;","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-Eaa","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":154206,"url":"https:\/\/support.questetra.com\/en\/addons\/openai-chat-answer-prompt-with-images-202311\/","url_meta":{"origin":154390,"position":0},"title":"OpenAI #Chat: Answer Prompt with Images","author":"IMAMURA, Genichi","date":"2023-11-07","format":false,"excerpt":"Creates a response for a prompt with images. MODEL (GPT-4 with Vision) takes in images and answers questions related to them, such as what the image represents, what is in the image, and more (eg. ideas for dinner based on what is in fridge).","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"OpenAI #Chat: Answer Prompt with Images","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":154209,"url":"https:\/\/support.questetra.com\/ja\/addons\/openai-chat-answer-prompt-with-images-202311\/","url_meta":{"origin":154390,"position":1},"title":"OpenAI #Chat: \u753b\u50cf\u4ed8\u304d\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u56de\u7b54","author":"IMAMURA, Genichi","date":"2023-11-07","format":false,"excerpt":"\u753b\u50cf\u4ed8 Prompt \u306b\u5bfe\u3059\u308b\u56de\u7b54\u6587\u3092\u751f\u6210\u3057\u307e\u3059\u3002MODEL \u306f\u753b\u50cf\u3092\u53d6\u308a\u8fbc\u307f\u3001\u753b\u50cf\u306b\u95a2\u9023\u3059\u308b\u8cea\u554f\u306b\u7b54\u3048\u307e\u3059\u3002\u753b\u50cf\u304c\u4f55\u3092\u8868\u73fe\u3057\u3066\u3044\u308b\u304b\u3001\u753b\u50cf\u5185\u306b\u4f55\u304c\u5b58\u5728\u3059\u308b\u304b\u3001\u305d\u308c\u3089\u3092\u8e0f\u307e\u3048\u305f\u8cea\u554f\uff08\u51b7\u8535\u5eab\u306e\u4e2d\u8eab\u304b\u3089\u5915\u98df\u30ec\u30b7\u30d4\u306a\u3069\uff09\u306b\u7b54\u3048\u307e\u3059\u3002 (GPT-4 with Vision)","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"OpenAI #Chat: \u753b\u50cf\u4ed8\u304d\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u56de\u7b54","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":154220,"url":"https:\/\/support.questetra.com\/en\/addons\/openai-images-generate-202311\/","url_meta":{"origin":154390,"position":2},"title":"OpenAI #Images: Generate","author":"IMAMURA, Genichi","date":"2023-11-08","format":false,"excerpt":"Creates an image given a PROMPT text by the \"DALL-E 3 MODEL\" via OpenAI API. By default a 1024x1024 image is generated, but 1024x1792 or 1792x1024 are also available. Note that PROMPT must be defined within 4000 characters.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"OpenAI #Images: Generate","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-images-generate-202311-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-images-generate-202311-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-images-generate-202311-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-images-generate-202311-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-images-generate-202311-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":143813,"url":"https:\/\/support.questetra.com\/en\/addons\/openai-audio-transcribe-to-webvtt-2023\/","url_meta":{"origin":154390,"position":3},"title":"OpenAI #Audio: Transcribe to WebVTT","author":"IMAMURA, Genichi","date":"2023-03-17","format":false,"excerpt":"Transcribes audio and video files in caption format WebVTT, using the OpenAI API \"whisper-1\" model by default (configurable) to convert audio data into text data. Set abbreviations and technical terms as PROMPT for more accurate transcription.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"OpenAI: Audio, Transcribe to WebVTT","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-audio-transcribe-to-webvtt-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-audio-transcribe-to-webvtt-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-audio-transcribe-to-webvtt-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-audio-transcribe-to-webvtt-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/03\/openai-audio-transcribe-to-webvtt-2023-capture-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":150014,"url":"https:\/\/support.questetra.com\/en\/addons\/openai-ftjob-create-202308\/","url_meta":{"origin":154390,"position":4},"title":"OpenAI #FtJob: Create","author":"IMAMURA, Genichi","date":"2023-08-23","format":false,"excerpt":"Creates a job (FtJob) that fine-tunes a specified MODEL. Stores the job ID. The job will take minutes or hours. The Fine-Tuned MODEL (FtMODEL) will be available after the job is completed. Note that the training file (dataset) must be uploaded in advance.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"OpenAI #FtJob: Create","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/openai-ftjob-create-202308-capture-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/openai-ftjob-create-202308-capture-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/openai-ftjob-create-202308-capture-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/openai-ftjob-create-202308-capture-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/openai-ftjob-create-202308-capture-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":148436,"url":"https:\/\/support.questetra.com\/en\/templates\/ai-art-creation-process-20230713\/","url_meta":{"origin":154390,"position":5},"title":"AI Image Creation Process, OpenAI API DallE2","author":"IMAMURA, Genichi","date":"2023-07-25","format":false,"excerpt":"This is the process of creating AI art using image-generating AI. The person in charge (Prompter\/Arranger) repeatedly uses the OpenAI API (Dall-E 2) to complete the AI art (image file). The reviewer (Reviewer) ensures that the AI art does not (and will not) infringe the copyright of other companies.","rel":"","context":"In &quot;Workflow Apps&quot;","block_context":{"text":"Workflow Apps","link":"https:\/\/support.questetra.com\/en\/category\/templates\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/ai-art-creation-process-20230713-nocode-en.png?fit=960%2C540&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/ai-art-creation-process-20230713-nocode-en.png?fit=960%2C540&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/ai-art-creation-process-20230713-nocode-en.png?fit=960%2C540&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/ai-art-creation-process-20230713-nocode-en.png?fit=960%2C540&ssl=1&resize=700%2C400 2x"},"classes":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/154390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=154390"}],"version-history":[{"count":7,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/154390\/revisions"}],"predecessor-version":[{"id":154466,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/154390\/revisions\/154466"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/154386"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=154390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=154390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=154390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}