{"id":27149,"date":"2021-03-23T07:53:16","date_gmt":"2021-03-23T07:53:16","guid":{"rendered":"https:\/\/developer.kore.ai\/v9-2\/?p=27149"},"modified":"2022-04-03T07:42:09","modified_gmt":"2022-04-03T06:42:09","slug":"how-to-use-bot-functions","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-2\/docs\/bots\/how-tos\/how-to-use-bot-functions\/?lang=ja","title":{"rendered":"\u30dc\u30c3\u30c8\u95a2\u6570\u306e\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>\u3053\u306e\u30cf\u30a6\u30c4\u30fc\u3067\u306f\u3001\u30dc\u30c3\u30c8\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u6a5f\u80fd\u306e\u4e00\u90e8\u3092\u518d\u5229\u7528\u3067\u304d\u308b\u30d0\u30f3\u30ad\u30f3\u30b0\u30dc\u30c3\u30c8\u306b\u304a\u3044\u3066\u3001\u30b7\u30ca\u30ea\u30aa\u3092\u63a2\u7a76\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u3053\u3067\u306f\u3001\u652f\u51fa\u30ec\u30dd\u30fc\u30c8\u3092\u95a2\u6570\u3068\u3057\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u5316\u3057\u3066\u3001\u666e\u901a\u9810\u91d1\u53e3\u5ea7\u3068\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u4e21\u65b9\u3067\u4f7f\u7528\u3067\u304d\u308b\u65b9\u6cd5\u3092\u78ba\u304b\u3081\u307e\u3059\u3002<\/p>\n<p>\u30dc\u30c3\u30c8\u5909\u6570\u3068\u306f\u4f55\u304b\u3001Kore.ai Bots\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u3069\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u304b\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306f\u3001<a href=\"\/docs\/bots\/bot-settings\/bot-functions\/reusing-bot-functions-custom-script-file\/#Updating_Custom_Script_File\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044<\/a>\u3002<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"i\">\u554f\u984c\u63d0\u8d77<\/span><\/h2>\n<p><a href=\"\/docs\/bots-ja\/how-tos-ja\/creating-a-banking-bot\/\">\u30d0\u30f3\u30ad\u30f3\u30b0\u30dc\u30c3\u30c8<\/a>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ec\u30dd\u30fc\u30c8\u4f5c\u6210\u306e\u30bf\u30b9\u30af\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u6307\u5b9a\u53e3\u5ea7\u756a\u53f7\u306e\u6bce\u6708\u306e\u6b8b\u9ad8\u3092\u8868\u793a\u3059\u308b\u6708\u6b21\u660e\u7d30\u66f8\u3002<\/li>\n<li>\u6307\u5b9a\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u5229\u7528\u72b6\u6cc1\u3092\u8868\u793a\u3059\u308b\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u660e\u7d30\u66f8\u3002<\/li>\n<li>\u3069\u3061\u3089\u306e\u30ec\u30dd\u30fc\u30c8\u3082\u5186\u30b0\u30e9\u30d5\u3067\u8868\u793a\u3055\u308c\u3066\u304a\u308a\u3001\u5165\u529b\u306f\u6708\u3068\u91d1\u984d\u306e\u5024\u306e\u914d\u5217\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u3053\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001\u30dc\u30c3\u30c8\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u4f5c\u696d\u306e\u91cd\u8907\u3092\u907f\u3051\u3001\u5747\u4e00\u306a\u30d7\u30ec\u30bc\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"i-2\">\u5fc5\u8981\u6761\u4ef6<\/span><\/h2>\n<ul>\n<li>\u30dc\u30c3\u30c8\u69cb\u7bc9\u306e\u30ca\u30ec\u30c3\u30b8<\/li>\n<li>\u4f5c\u696d\u3059\u308b\u30dc\u30c3\u30c8\u3067\u3059\u3002 <a href=\"\/docs\/bots-ja\/how-tos-ja\/creating-a-banking-bot\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089\u304b\u3089<\/a>\u30d0\u30f3\u30ad\u30f3\u30b0\u30dc\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<li>\u4ee5\u4e0b\u306f\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b2\u3064\u306e\u6a5f\u80fd\u3092\u6301\u3064\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3059\uff08 <a href=\"\/docs\/bots\/sdks\/message-templates\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30e1\u30c3\u30bb\u30fc\u30b8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/a>\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff09\u3002\n<ul>\n<li><em>tableTemplate &#8211;\u00a0<\/em>2\u6b21\u5143\u306e\u914d\u5217\u3092\u53d7\u3051\u53d6\u308a\u3001\u5185\u5bb9\u3092\u8868\u5f62\u5f0f\u3067\u8868\u793a\u3057\u307e\u3059\u3002<\/li>\n<li><em>pieTemplate <\/em><em>&#8211;\u00a0<\/em>\u306f\u30012\u6b21\u5143\u306e\u914d\u5217\u3092\u53d7\u3051\u53d6\u308a\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5186\u30b0\u30e9\u30d5\u5f62\u5f0f\u3067\u8868\u793a\u3057\u307e\u3059<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001 <em>.js<\/em> \u30d5\u30a1\u30a4\u30eb\uff08\u4f8b\uff1a\u201cfunctionEX.js\u201d<em><\/em>\uff09\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<pre>function tableTemplate(data){\r\n var message = {\r\n   \"type\": \"template\",\r\n   \"payload\": {\r\n   \"template_type\": \"mini_table\",\r\n   \"layout\": \"vertical\",\r\n   \"text\":\"Monthly Balance Statement\",\r\n   \"elements\": []\r\n  }\r\n };\r\n for (i=0; i &lt; data.length; i++) {\r\n   var j=0;\r\n   var element = {\r\n     \"primary\":[[data[i][j]],[data[i][j+1],\"right\"]],\r\n     \"additional\":[[data[i][j+2],data[i][j+3]],[data[i][j+4],data[i][j+5]]]\r\n   };\r\n message.payload.elements.push(element);\r\n }\r\n return JSON.stringify(message);\r\n};\r\n\r\nfunction pieTemplate(data){\r\n  var message = {\r\n   \"type\": \"template\",\r\n   \"payload\": {\r\n   \"template_type\": \"piechart\",\r\n   \"pie_type\": \"regular\",\r\n   \"text\": \"Monthly Expense Report\",\r\n   \"elements\": []\r\n   }\r\n  };\r\n for (i=0; i &lt; data.length; i++) {\r\n  var element = {\r\n   \"title\": data[i][0],\r\n   \"value\": data[i][1]\r\n   };\r\n  message.payload.elements.push(element);\r\n }\r\n return JSON.stringify(message);\r\n};<\/pre>\n<\/li>\n<\/ul>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"i-3\">\u5c0e\u5165<\/span><\/h2>\n<ol>\n<li>\u30d0\u30f3\u30ad\u30f3\u30b0\u30dc\u30c3\u30c8\u3092\u958b\u304d\u307e\u3059<\/li>\n<li>\u30c8\u30c3\u30d7\u30e1\u30cb\u30e5\u30fc\u304b\u3089<strong>\u69cb\u7bc9<\/strong>\u30bf\u30d6\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u8a2d\u5b9a<\/strong>\u304b\u3089<strong>\u30dc\u30c3\u30c8\u95a2\u6570<\/strong>\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30a4\u30f3\u30dd\u30fc\u30c8<\/strong>\uff08\u307e\u305f\u306f\u300c\u65b0\u898f\u30a4\u30f3\u30dd\u30fc\u30c8\u300d\uff09\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u300c\u30ab\u30b9\u30bf\u30e0\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u300d\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<li>\u300c\u5fc5\u8981\u6761\u4ef6\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u4fdd\u5b58\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u307e\u305f\u306f\u30d6\u30e9\u30a6\u30ba\u3057\u3066\u3001<strong>\u30a4\u30f3\u30dd\u30fc\u30c8<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<li>\u6210\u529f\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001<strong>\u5b8c\u4e86<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<li>\u3053\u308c\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812074757\/ht_functions1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29076\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812074757\/ht_functions1.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812074757\/ht_functions1.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812074757\/ht_functions1-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812074757\/ht_functions1-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/li>\n<li><strong>\u30c0\u30a4\u30a2\u30ed\u30b0\u30bf\u30b9\u30af<\/strong>\u30da\u30fc\u30b8\u3092\u958b\u304d\u3001<em>\u300c\u6708\u6b21\u660e\u7d30\u66f8\u300d<\/em>\u3068\u3044\u3046\u540d\u524d\u306e\u65b0\u898f\u30c0\u30a4\u30a2\u30ed\u30b0\u30bf\u30b9\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\n<ol>\n<li><strong>\u53e3\u5ea7\u756a\u53f7<\/strong>\u3068<strong>\u53e3\u5ea7\u306e\u7a2e\u985e<\/strong>\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3059\u308b\u305f\u3081\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<li>\u7406\u60f3\u7684\u306b\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u30b3\u30fc\u30eb\u3067\u6708\u3054\u3068\u306e\u6b8b\u9ad8\u306e\u8a73\u7d30\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u30c7\u30e2\u306e\u305f\u3081\u306b\u9759\u7684\u306a\u5024\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30dc\u30c3\u30c8\u30a2\u30af\u30b7\u30e7\u30f3<\/strong>\u3092\u4f7f\u7528\u3057\u3066<strong>\u30b9\u30af\u30ea\u30d7\u30c8<\/strong>\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059 &#8211; 1\u6708\u30012\u6708\u30013\u6708\u306e\u6b8b\u9ad8\u3092\u7dad\u6301\u3059\u308b\u914d\u5217\u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<code>context.monthlyBal = [[&quot;Jan&quot;,100],[&quot;Feb&quot;,200],[&quot;Mar&quot;, 300]];<\/code><\/li>\n<li><strong>\u30e1\u30c3\u30bb\u30fc\u30b8<\/strong>\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5148\u307b\u3069\u5ba3\u8a00\u3057\u305f\u30dc\u30c3\u30c8\u95a2\u6570\u306b\u3053\u306e\u30c7\u30fc\u30bf\u3092\u9001\u308a\u3001\u30ec\u30dd\u30fc\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul>\n<li><strong>\u30dc\u30c3\u30c8\u30ec\u30b9\u30dd\u30f3\u30b9<\/strong>\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u3001<strong>\u30e1\u30c3\u30bb\u30fc\u30b8\u30ec\u30b9\u30dd\u30f3\u30b9<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30dc\u30c3\u30c8\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8ffd\u52a0\u3057<\/strong>\u3001&nbsp;<strong>\u30c1\u30e3\u30cd\u30eb<\/strong>\u3068\u3057\u3066<em>Web\/\u30e2\u30d0\u30a4\u30eb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/em>\u3092\u9078\u629e\u3057\u3001&nbsp;<strong>JavaScript<\/strong>\u30bf\u30d6\u306b\u5207\u308a\u66ff\u3048\u3066\u3001\u5024\u3092\u8868\u5f62\u5f0f\u3067\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n<code>var info = context.monthlyBal;<br \/>\nprint(tableTemplate(info));<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\u5225\u306e<strong>\u30e1\u30c3\u30bb\u30fc\u30b8<\/strong>\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5148\u307b\u3069\u5ba3\u8a00\u3057\u305f\u30dc\u30c3\u30c8\u95a2\u6570\u306b\u3053\u306e\u30c7\u30fc\u30bf\u3092\u9001\u308a\u3001\u30ec\u30dd\u30fc\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul>\n<li><strong>\u30dc\u30c3\u30c8\u30ec\u30b9\u30dd\u30f3\u30b9<\/strong>\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u3001<strong>\u30e1\u30c3\u30bb\u30fc\u30b8\u30ec\u30b9\u30dd\u30f3\u30b9<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30dc\u30c3\u30c8\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8ffd\u52a0\u3057<\/strong>\u3001&nbsp;<strong>\u30c1\u30e3\u30cd\u30eb<\/strong>\u3068\u3057\u3066<em>Web\/\u30e2\u30d0\u30a4\u30eb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/em>\u3092\u9078\u629e\u3057\u3001&nbsp;<strong>JavaScript<\/strong>\u30bf\u30d6\u306b\u5207\u308a\u66ff\u3048\u3066\u3001\u5024\u3092\u5186\u30b0\u30e9\u30d5\u3067\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n<code>var info = context.monthlyBal;<br \/>\nprint(pieTemplate(info));<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u30c0\u30a4\u30a2\u30ed\u30b0\u30bf\u30b9\u30af\u3092\u7d42\u4e86\u3057\u3066\u3001<strong>\u30c0\u30a4\u30a2\u30ed\u30b0\u30bf\u30b9\u30af<\/strong>\u30da\u30fc\u30b8\u306b\u623b\u308a\u307e\u3059<\/li>\n<li><em>\u300c\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u660e\u7d30\u66f8\u300d<\/em>\u3068\u3044\u3046\u540d\u524d\u306e\u65b0\u898f\u30c0\u30a4\u30a2\u30ed\u30b0\u30bf\u30b9\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\n<ol>\n<li><strong>\u53e3\u5ea7\u756a\u53f7<\/strong>\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3059\u308b\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<li>\u7406\u60f3\u7684\u306b\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u30b3\u30fc\u30eb\u3067\u6708\u3054\u3068\u306e\u652f\u51fa\u5024\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u30c7\u30e2\u306e\u305f\u3081\u306b\u9759\u7684\u306a\u5024\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30dc\u30c3\u30c8\u30a2\u30af\u30b7\u30e7\u30f3<\/strong>\u30ce\u30fc\u30c9\u306e\u4e2d\u306b<strong>\u30b9\u30af\u30ea\u30d7\u30c8<\/strong>\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059 &#8211; \u3059\u3079\u3066\u306e\u6708\u306e\u652f\u51fa\u5024\u3092\u7dad\u6301\u3059\u308b\u914d\u5217\u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<code>context.monthlyExpenses = [[&quot;Jan&quot;,100],[&quot;Feb&quot;,200],[&quot;Mar&quot;, 300],[&quot;Apr&quot;,100],[&quot;May&quot;,400],[&quot;June&quot;, 500],[&quot;Jul&quot;,100],[&quot;Aug&quot;,200],[&quot;Sept&quot;, 300],[&quot;Oct&quot;,100],[&quot;Nov&quot;,100],[&quot;Dec&quot;, 300]];<\/code><\/li>\n<li><strong>\u30e1\u30c3\u30bb\u30fc\u30b8<\/strong>\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3001\u5148\u307b\u3069\u5ba3\u8a00\u3057\u305f\u30dc\u30c3\u30c8\u95a2\u6570\u306b\u3053\u306e\u30c7\u30fc\u30bf\u3092\u9001\u308a\u3001\u30ec\u30dd\u30fc\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul>\n<li><strong>\u30dc\u30c3\u30c8\u30ec\u30b9\u30dd\u30f3\u30b9<\/strong>\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u3001<strong>\u30e1\u30c3\u30bb\u30fc\u30b8\u30ec\u30b9\u30dd\u30f3\u30b9<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<ul>\n<li><strong>\u30dc\u30c3\u30c8\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8ffd\u52a0\u3057<\/strong>\u3001&nbsp;<strong>\u30c1\u30e3\u30cd\u30eb<\/strong>\u3068\u3057\u3066<em>Web\/\u30e2\u30d0\u30a4\u30eb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/em>\u3092\u9078\u629e\u3057\u3001<strong>JavaScript<\/strong>\u30bf\u30d6\u306b\u5207\u308a\u66ff\u3048\u3066\u3001\u5024\u3092\u5186\u30b0\u30e9\u30d5\u3067\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u3054\u89a7\u306e\u901a\u308a\u3001\u524d\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u30bf\u30b9\u30af\u3067\u547c\u3073\u51fa\u3055\u308c\u305f\u306e\u3068\u540c\u3058\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<code>var info = context.monthlyExpenses;<br \/>\nprint(pieTemplate(info));<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u7d42\u4e86<\/li>\n<li><strong>\u30dc\u30c3\u30c8\u3068\u4f1a\u8a71<\/strong>\u3057\u3066\u3001\u4e21\u65b9\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u540c\u3058\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u5834\u6240\u306b\u30ec\u30dd\u30fc\u30c8\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ol>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"g-cols wpb_row  type_default valign_top vc_inner \"><div class=\"vc_col-sm-6 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812075040\/ht_functions2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812075040\/ht_functions2.png\" alt=\"\" width=\"1366\" height=\"764\" class=\"alignnone size-full wp-image-29079\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812075040\/ht_functions2.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812075040\/ht_functions2-300x168.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812075040\/ht_functions2-1024x573.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><div class=\"vc_col-sm-6 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812075157\/ht_functions3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812075157\/ht_functions3.png\" alt=\"\" width=\"1366\" height=\"768\" class=\"alignnone size-full wp-image-29082\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812075157\/ht_functions3.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812075157\/ht_functions3-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210812075157\/ht_functions3-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"\u3053\u306e\u30cf\u30a6\u30c4\u30fc\u3067\u306f\u3001\u30dc\u30c3\u30c8\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u6a5f\u80fd\u306e\u4e00\u90e8\u3092\u518d\u5229\u7528\u3067\u304d\u308b\u30d0\u30f3\u30ad\u30f3\u30b0\u30dc\u30c3\u30c8\u306b\u304a\u3044\u3066\u3001\u30b7\u30ca\u30ea\u30aa\u3092\u63a2\u7a76\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u3053\u3067\u306f\u3001\u652f\u51fa\u30ec\u30dd\u30fc\u30c8\u3092\u95a2\u6570\u3068\u3057\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u5316\u3057\u3066\u3001\u666e\u901a\u9810\u91d1\u53e3\u5ea7\u3068\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u4e21\u65b9\u3067\u4f7f\u7528\u3067\u304d\u308b\u65b9\u6cd5\u3092\u78ba\u304b\u3081\u307e\u3059\u3002 \u30dc\u30c3\u30c8\u5909\u6570\u3068\u306f\u4f55\u304b\u3001Kore.ai Bots\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u3069\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u304b\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306f\u3001\u3053\u3061\u3089\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002 \u554f\u984c\u63d0\u8d77 \u30d0\u30f3\u30ad\u30f3\u30b0\u30dc\u30c3\u30c8\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ec\u30dd\u30fc\u30c8\u4f5c\u6210\u306e\u30bf\u30b9\u30af\u304c\u3042\u308a\u307e\u3059\u3002 \u6307\u5b9a\u53e3\u5ea7\u756a\u53f7\u306e\u6bce\u6708\u306e\u6b8b\u9ad8\u3092\u8868\u793a\u3059\u308b\u6708\u6b21\u660e\u7d30\u66f8\u3002 \u6307\u5b9a\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u5229\u7528\u72b6\u6cc1\u3092\u8868\u793a\u3059\u308b\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u660e\u7d30\u66f8\u3002 \u3069\u3061\u3089\u306e\u30ec\u30dd\u30fc\u30c8\u3082\u5186\u30b0\u30e9\u30d5\u3067\u8868\u793a\u3055\u308c\u3066\u304a\u308a\u3001\u5165\u529b\u306f\u6708\u3068\u91d1\u984d\u306e\u5024\u306e\u914d\u5217\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u3053\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001\u30dc\u30c3\u30c8\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u4f5c\u696d\u306e\u91cd\u8907\u3092\u907f\u3051\u3001\u5747\u4e00\u306a\u30d7\u30ec\u30bc\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002 \u5fc5\u8981\u6761\u4ef6 \u30dc\u30c3\u30c8\u69cb\u7bc9\u306e\u30ca\u30ec\u30c3\u30b8 \u4f5c\u696d\u3059\u308b\u30dc\u30c3\u30c8\u3067\u3059\u3002 \u3053\u3061\u3089\u304b\u3089\u30d0\u30f3\u30ad\u30f3\u30b0\u30dc\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002 \u4ee5\u4e0b\u306f\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b2\u3064\u306e\u6a5f\u80fd\u3092\u6301\u3064\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3059\uff08 \u30e1\u30c3\u30bb\u30fc\u30b8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff09\u3002 tableTemplate -\u00a02\u6b21\u5143\u306e\u914d\u5217\u3092\u53d7\u3051\u53d6\u308a\u3001\u5185\u5bb9\u3092\u8868\u5f62\u5f0f\u3067\u8868\u793a\u3057\u307e\u3059\u3002 pieTemplate -\u00a0\u306f\u30012\u6b21\u5143\u306e\u914d\u5217\u3092\u53d7\u3051\u53d6\u308a\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5186\u30b0\u30e9\u30d5\u5f62\u5f0f\u3067\u8868\u793a\u3057\u307e\u3059 \u4ee5\u4e0b\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001 .js \u30d5\u30a1\u30a4\u30eb\uff08\u4f8b\uff1a\u201cfunctionEX.js\u201d\uff09\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002 function tableTemplate(data){ var message = { \"type\": \"template\", \"payload\": { \"template_type\": \"mini_table\", \"layout\": \"vertical\", \"text\":\"Monthly Balance Statement\", \"elements\": [] } }; for (i=0; i &lt; data.length; i++) { var j=0; var element =...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[],"class_list":["post-27149","post","type-post","status-publish","format-standard","hentry","category-how-tos"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts\/27149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/comments?post=27149"}],"version-history":[{"count":3,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts\/27149\/revisions"}],"predecessor-version":[{"id":39492,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts\/27149\/revisions\/39492"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/media?parent=27149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/categories?post=27149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/tags?post=27149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}