{"id":7993,"date":"2023-07-26T22:58:48","date_gmt":"2023-07-26T13:58:48","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=7993"},"modified":"2023-07-26T23:00:23","modified_gmt":"2023-07-26T14:00:23","slug":"post-7993","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=7993","title":{"rendered":"GAS\u3067Bard\u306eAPI(VertexAI API)\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\uff01PaLM2\u306e\u5fdc\u7b54\u751f\u6210"},"content":{"rendered":"\n<p>\u751f\u6210AI\u306eBard\u3092API\u3067\u5229\u7528\u3057\u305f\u3044\u5834\u5408\u3001GCP(Google Cloud Platform)\u306bVertexAI\u306eAPI\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Google Apps Script(GAS)\u3067VertexAI\u306eAPI\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3001Bard\u3068\u540c\u3058\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb\u306ePaLM2\u3092\u4f7f\u3063\u305f\u5fdc\u7b54\u3092\u8fd4\u3059\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ChatGPT\u306e\u5bfe\u6297\u99ac\u3067\u3042\u308bBard<\/h2>\n\n\n\n<p>Bard\u306f\u30b0\u30fc\u30b0\u30eb\u793e\u304c\u958b\u767a\u3057\u3066\u3044\u308b\u751f\u6210AI\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u751f\u6210AI\u3067\u6700\u3082\u6709\u540d\u306aChatGPT\u306e\u5bfe\u6297\u99ac\u3068\u3057\u3066\u3001Bard\u306f\u671f\u5f85\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Bard\u306e\u30c7\u30e2\u3067\u7d39\u4ecb\u3055\u308c\u305f\u751f\u6210\u7d50\u679c\u306b\u8aa4\u308a\u304c\u898b\u3064\u304b\u3063\u305f\u3053\u3068\u3067\u843d\u80c6\u3055\u308c\u3001Google\u306e\u89aa\u4f1a\u793e\u3067\u3042\u308b\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u793e\u306e\u682a\u4fa1\u304c\u66b4\u843d\u3057\u305f\u307b\u3069\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u3067\u57f9\u3063\u305fAI\u6280\u8853\u3092\u6d3b\u304b\u3057\u3066\u3001\u65e5\u3005\u6539\u826f\u304c\u9032\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>2023\u5e747\u670813\u65e5\u306b\u306fChatGPT(GPT-4)\u3088\u308a\u3082\u4e00\u8db3\u5148\u306b\u3001Bard\u306e\u82f1\u8a9e\u7248\u304c\u30de\u30eb\u30c1\u30e2\u30fc\u30c0\u30eb(\u753b\u50cf\u5165\u529b)\u306b\u3082\u5bfe\u5fdc\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580 wp-block-embed-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"2d66XJAZDb\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=7976\">\u82f1\u8a9e\u7248Bard\u304c\u30de\u30eb\u30c1\u30e2\u30fc\u30c0\u30eb\u5bfe\u5fdc\uff01(\u65e5\u672c\u4e0d\u53ef)Google\u30ec\u30f3\u30ba\u3067\u753b\u50cf\u8a8d\u8b58<\/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;\u82f1\u8a9e\u7248Bard\u304c\u30de\u30eb\u30c1\u30e2\u30fc\u30c0\u30eb\u5bfe\u5fdc\uff01(\u65e5\u672c\u4e0d\u53ef)Google\u30ec\u30f3\u30ba\u3067\u753b\u50cf\u8a8d\u8b58&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=7976&#038;embed=true#?secret=jUP3sfSeJk#?secret=2d66XJAZDb\" data-secret=\"2d66XJAZDb\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Bard\u306fAPI\u3067\u5229\u7528\u53ef\u80fd\uff1f<\/h2>\n\n\n\n<p>\u305d\u3093\u306a\u30b0\u30fc\u30b0\u30eb\u306e\u751f\u6210AI\u3067\u3042\u308bBard\u306fAPI\u306f\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<p>ChatGPT\u306f2023\u5e743\u6708\u306bAPI\u304c\u63d0\u4f9b\u3055\u308c\u3001\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u3084\u4f01\u696d\u304cChatGPT\u306eAPI\u3092\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u3084\u30b5\u30fc\u30d3\u30b9\u3092\u958b\u767a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Bard\u306e\u30b5\u30fc\u30d3\u30b9\u30da\u30fc\u30b8\u306b\u306f\u3001\u7279\u306bAPI\u306b\u95a2\u3059\u308b\u60c5\u5831\u306f\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"406\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230717_auto_003.jpg\" alt=\"2023\u5e747\u670817\u65e5\u6642\u70b9\u3067Bard\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3082\u753b\u50cf\u5165\u529b\u306e\u30de\u30eb\u30c1\u30e2\u30fc\u30c0\u30eb\u672a\u5bfe\u5fdc\" class=\"wp-image-7979\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230717_auto_003.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230717_auto_003-300x152.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230717_auto_003-768x390.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230717_auto_003-530x269.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230717_auto_003-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230717_auto_003-710x360.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230717_auto_003-725x368.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001Bard\u81ea\u4f53\u3092API\u7d4c\u7531\u3067\u5229\u7528\u3059\u308b\u65b9\u6cd5\u306f\u306a\u3044\u72b6\u614b\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GCP\u306eVertexAI\u306eAPI\u304c\u7528\u610f<\/h2>\n\n\n\n<p>\u751f\u6210AI\u306eBard\u81ea\u4f53\u306b\u306fAPI\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30b0\u30fc\u30b0\u30eb\u793e\u306fVertex AI\u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>VertexAI\u306f\u30b0\u30fc\u30b0\u30eb\u304c\u3053\u308c\u307e\u3067\u500b\u5225\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u63d0\u4f9b\u3057\u3066\u304d\u305fAI\u3084\u6a5f\u68b0\u5b66\u7fd2\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u7d71\u5408\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"411\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_015.jpg\" alt=\"Google Cloud Platform(GCP)\u306eAI\u30fb\u6a5f\u68b0\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u304c\u7d71\u5408\u3055\u308c\u305fVertexAI\u3067\u306fBard\u3068\u540c\u3058\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb\u304c\u5229\u7528\u53ef\u80fd\" class=\"wp-image-8011\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_015.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_015-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_015-768x395.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_015-530x272.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_015-565x290.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_015-710x365.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_015-725x372.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>VertexAI\u306fGoogle Cloud Platform\u3067API\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306eVertexAI\u3067\u306fBard\u3067\u73fe\u5728\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb(LLM)\u306e\u300cPaLM2\u300d\u306b\u3088\u308b\u751f\u6210AI\u3092\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>Bard\u3067\u5f97\u3089\u308c\u308b\u751f\u6210\u30c6\u30ad\u30b9\u30c8\u3068\u540c\u3058\u3088\u3046\u306a\u7d50\u679c\u3092VertexAI\u306eAPI\u304b\u3089\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001\u73fe\u6642\u70b9\u3067Bard\u3092API\u3067\u5229\u7528\u3057\u305f\u3044\u5834\u5408\u306f\u3001VertexAI API\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GCP\u306e\u5229\u7528\u767b\u9332\u3068\u7121\u6599\u30af\u30ec\u30b8\u30c3\u30c8\u53d6\u5f97\u624b\u9806<\/h2>\n\n\n\n<p>Google Cloud Platform(GCP)\u306b\u7528\u610f\u3055\u308c\u305fVertexAI\u3092\u5229\u7528\u3059\u308b\u306b\u306f\u3001\u307e\u305aGCP\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u307e\u3067GCP\u3092\u4f7f\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u5411\u3051\u306b\u306f\u3001300\u30c9\u30eb\u5206\u306e\u7121\u6599\u30af\u30ec\u30b8\u30c3\u30c8\u3082\u4ed8\u4e0e\u3055\u308c\u307e\u3059(90\u65e5\u9650\u5b9a)\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001VertexAI\u3092\u5229\u7528\u3059\u308b\u4e8b\u524d\u6e96\u5099\u3068\u3057\u3066\u3001GCP\u306e\u5229\u7528\u767b\u9332\u3068\u7121\u6599\u30af\u30ec\u30b8\u30c3\u30c8\u306e\u53d6\u5f97\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\uff11\uff0e<a href=\"https:\/\/console.cloud.google.com\/getting-started\" target=\"_blank\" rel=\"noopener\">GCP\u306e\u30da\u30fc\u30b8<\/a>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u5229\u7528\u898f\u7d04\u3084\u901a\u77e5\u30e1\u30fc\u30eb\u306b\u30c1\u30a7\u30c3\u30af\u3092\u3044\u308c\u3066\u300c\u540c\u610f\u3057\u3066\u7d9a\u884c\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"401\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_001.jpg\" alt=\"Google Cloud Platform(GCP)\u306e\u30da\u30fc\u30b8\u306b\u521d\u3081\u3066\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u5229\u7528\u898f\u7d04\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u540c\u610f\u3057\u3066\u7d9a\u884c\" class=\"wp-image-7994\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_001.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_001-300x150.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_001-768x385.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_001-530x266.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_001-565x283.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_001-710x356.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_001-725x363.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\uff12\uff0e\u300cGoogle Cloud Platform\u306e\u958b\u59cb\u300d\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u300c\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u306b\u767b\u9332\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"406\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_002.jpg\" alt=\"GCP\u306e\u30da\u30fc\u30b8\u304c\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3001\u300c\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u306b\u767b\u9332\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\" class=\"wp-image-7995\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_002-300x152.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_002-768x390.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_002-530x269.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_002-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_002-710x360.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_002-725x368.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\uff13\uff0e\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u306e\u5165\u529b\u3067\u56fd\u3092\u300c\u65e5\u672c\u300d\u3001\u30cb\u30fc\u30ba\u306e\u8aac\u660e\u3067\u300c\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u300d\u306a\u3069\u5165\u529b\u3057\u3001\u5229\u7528\u898f\u7d04\u306b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u300c\u7d9a\u884c\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"421\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_003.jpg\" alt=\"GCP\u306e\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u767b\u9332\u306b\u5f53\u305f\u3063\u3066\u56fd\u3068\u5229\u7528\u7528\u9014\u3092\u5165\u529b\u3057\u3066\u5229\u7528\u898f\u7d04\u306b\u540c\u610f\" class=\"wp-image-7996\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_003.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_003-300x158.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_003-768x404.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_003-530x279.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_003-565x297.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_003-710x374.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_003-725x382.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\uff14\uff0e\u304a\u652f\u6255\u60c5\u5831\u306e\u78ba\u8a8d\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u7a2e\u985e\u3092\u300c\u500b\u4eba\u300d\u3068\u3057\u3001\u304a\u652f\u6255\u3044\u65b9\u6cd5\u3067\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u756a\u53f7\u3068\u4f4f\u6240\u3092\u5165\u529b\u3057\u3001\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u958b\u59cb\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"429\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_004.jpg\" alt=\"GCP\u306e\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u767b\u9332\u306e\u5229\u7528\u304c\u500b\u4eba\u304b\u6cd5\u4eba\u304b\u9078\u629e\u3057\u3001\u3067\u306f\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u60c5\u5831\u3092\u5165\u529b\" class=\"wp-image-7997\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_004-300x161.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_004-768x412.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_004-530x284.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_004-565x303.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_004-710x381.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_004-725x389.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0a\u306e4Step\u3067GCP\u5229\u7528\u767b\u9332\u3068\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u767b\u9332\u304c\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"400\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_005.jpg\" alt=\"GCP\u306e\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u767b\u9332\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u4ed8\u4e0e\u3055\u308c\u305f\u7121\u6599\u30af\u30ec\u30b8\u30c3\u30c8\u6570\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u3068\u3082\u306b\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u756a\u53f7\u304c\u8868\u793a\" class=\"wp-image-7998\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_005.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_005-300x150.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_005-768x384.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_005-530x265.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_005-565x283.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_005-710x355.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_005-725x363.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>300$\u3092\u65e5\u672c\u5186\u306b\u63db\u7b97\u3057\u305f\u30af\u30ec\u30b8\u30c3\u30c8\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u958b\u59cb\u3068\u540c\u6642\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u756a\u53f7\u3092\u8d64\u67a0\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">VertexAI\u306eAPI\u6709\u52b9\u5316\u624b\u9806<\/h2>\n\n\n\n<p>Google Cloud Platform(GCP)\u306e\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u767b\u9332\u307e\u3067\u5b8c\u4e86\u3059\u308b\u3068\u3001VertexAI\u306eAPI\u3092\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306bGCP\u306e\u7ba1\u7406\u753b\u9762\u4e0a\u3067VertexAI\u306eAPI\u3092\u6709\u52b9\u5316\u3059\u308b\u624b\u9806\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\uff11\uff0eGCP\u306e\u5de6\u4e0a\u306b\u7528\u610f\u3055\u308c\u305f\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3001\u300cAPI\u3068\u30b5\u30fc\u30d3\u30b9\uff1e\u6709\u52b9\u306aAPI\u3068\u30b5\u30fc\u30d3\u30b9\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"438\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_006.jpg\" alt=\"GCP\u306e\u5de6\u4e0a\u306b\u3042\u308b\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300cAPI\u3068\u30b5\u30fc\u30d3\u30b9\u300d\u306e\u300c\u6709\u52b9\u306aAPI\u3068\u30b5\u30fc\u30d3\u30b9\u300d\u3092\u9078\u629e\" class=\"wp-image-7999\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_006.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_006-300x164.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_006-768x420.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_006-530x290.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_006-565x309.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_006-710x389.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_006-725x397.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\uff12\uff0eAPI\u3068\u30b5\u30fc\u30d3\u30b9\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u300cAPI\u3068\u30b5\u30fc\u30d3\u30b9\u306e\u6709\u52b9\u5316\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"405\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_007.jpg\" alt=\"Google Cloud Platform(GCP)\u306e\u300cAPI\u3068\u30b5\u30fc\u30d3\u30b9\u300d\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u300cAPI\u3068\u30b5\u30fc\u30d3\u30b9\u306e\u6709\u52b9\u5316\u300d\u3092\u9078\u629e\" class=\"wp-image-8000\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_007.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_007-300x152.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_007-768x389.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_007-530x268.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_007-565x286.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_007-710x359.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_007-725x367.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\uff13\uff0eGCP\u306eAPI\u30e9\u30a4\u30d6\u30e9\u30ea\u30da\u30fc\u30b8\u306e\u4e0a\u90e8\u306b\u8a2d\u7f6e\u3055\u308c\u305f\u691c\u7d22\u7a93\u306b\u300cVertex AI\u300d\u3092\u5165\u529b\u3057\u3066\u30a8\u30f3\u30bf\u30fc\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"405\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_008.jpg\" alt=\"GCP\u306eAPI\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u753b\u9762\u3067\u691c\u7d22\u7a93\u306b\u300cVertexAI\u300d\u3092\u5165\u529b\u3057\u3066\u691c\u7d22\" class=\"wp-image-8001\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_008.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_008-300x152.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_008-768x389.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_008-530x268.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_008-565x286.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_008-710x359.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_008-725x367.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\uff14\uff0e\u300cVertex AI API\u300d\u306e\u88fd\u54c1\u306e\u8a73\u7d30\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u300c\u6709\u52b9\u306b\u3059\u308b\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"442\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_009.jpg\" alt=\"\u300cVertex AI API\u300d\u753b\u9762\u3067\u3001\u300c\u6709\u52b9\u306b\u3059\u308b\u300d\u3067API\u304c\u5229\u7528\u53ef\u80fd\u306b\" class=\"wp-image-8002\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_009.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_009-300x166.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_009-768x424.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_009-530x293.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_009-565x312.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_009-710x392.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_009-725x401.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0a\u3067Vertex AI\u306eAPI\u6709\u52b9\u5316\u307e\u3067\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3067GCP\u63d0\u4f9b\u30b5\u30fc\u30d3\u30b9\u3067\u3042\u308bVertex AI\u3092API\u7d4c\u7531\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u3067Bard\u306eAPI(VertexAI\u306eAPI)\u30ea\u30af\u30a8\u30b9\u30c8\u65b9\u6cd5<\/h2>\n\n\n\n<p>GCP\u306e\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u767b\u9332\u306a\u3089\u3073\u306bVertex AI\u306eAPI\u6709\u52b9\u5316\u307e\u3067\u3067\u304d\u305f\u3089\u3001Google Apps Script(GAS)\u304b\u3089API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306bGAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067Vertex AI\u306eAPI\u3092\u5b9f\u884c\u3057\u3001Bard\u306e\u3088\u3046\u306a\u5fdc\u7b54\u7d50\u679c\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\uff11\uff0e\u307e\u305aGAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u65b0\u3057\u304f\u958b\u3044\u305f\u3089\u3001\u300c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"408\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_010.jpg\" alt=\"Vertex AI\u306eAPI\u3092Google Apps Script(GAS)\u3067\u5229\u7528\u3059\u308b\u305f\u3081\u3001\u307e\u305a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u3078\u79fb\u52d5\" class=\"wp-image-8003\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_010.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_010-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_010-768x392.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_010-530x270.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_010-565x288.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_010-710x362.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_010-725x370.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\uff12\uff0e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u3067\u5168\u822c\u8a2d\u5b9a\u306b\u3042\u308bappsscript.json\u306e\u30de\u30cb\u30e5\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u30a8\u30c7\u30a3\u30bf\u3067\u8868\u793a\u3059\u308b\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"423\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_011.jpg\" alt=\"Google Apps Script(GAS)\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u304b\u3089\u300c\u300cappsscript.json\u300d\u30de\u30cb\u30d5\u30a7\u30b9\u30c8 \u30d5\u30a1\u30a4\u30eb\u3092\u30a8\u30c7\u30a3\u30bf\u3067\u8868\u793a\u3059\u308b\u300d\u306b\u30c1\u30a7\u30c3\u30af\" class=\"wp-image-8004\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_011.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_011-300x159.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_011-768x406.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_011-530x280.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_011-565x299.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_011-710x375.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_011-725x383.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\uff13\uff0eGAS\u306e\u30a8\u30c7\u30a3\u30bf\u306b\u623b\u308a\u3001appsscript.json\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3001oauthScopes\u306e\u8a18\u8ff0\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"395\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_012.jpg\" alt=\"Google Apps Script(GAS)\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u753b\u9762\u306b\u623b\u308a\u3001appsscript.json\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u30b9\u30b3\u30fc\u30d7\u306e\u8a18\u8ff0\u3092\u8ffd\u52a0\" class=\"wp-image-8005\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_012.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_012-300x148.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_012-768x379.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_012-530x262.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_012-565x279.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_012-710x351.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_012-725x358.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-json\"><code class=\"language-json\">{\n  \"timeZone\": \"Etc\/GMT-9\",\n  \"dependencies\": {\n  },\n  \"exceptionLogging\": \"STACKDRIVER\",\n  \"oauthScopes\": [\"https:\/\/www.googleapis.com\/auth\/script.external_request\",\"https:\/\/www.googleapis.com\/auth\/cloud-platform\"],\n  \"runtimeVersion\": \"V8\"\n}<\/code><\/pre>\n\n\n\n<p>\u203b\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001\u5168\u3066\u9078\u629e\u3057\u3066\u4e0a\u66f8\u304d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\uff14\uff0eGAS\u306e\u30b3\u30fc\u30c9.gs\u3092\u9078\u629e\u3057\u3066\u3001Vertex AI\u306eAPI\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"540\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_013-1024x540.jpg\" alt=\"Google Apps Script(GAS)\u3067Bard\u306eAPI\u3068\u3082\u8a00\u3048\u308bVertex AI\u306eAPI\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-8006\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_013-1024x540.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_013-300x158.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_013-768x405.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_013-530x280.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_013-565x298.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_013-710x375.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_013-725x382.jpg 725w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_013.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function myFunction() {\n  \/\/VertexAI\u306eAPI\u3092\u6709\u52b9\u5316\u3057\u305fGCP\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u756a\u53f7\u3092\u8a2d\u5b9a\u3059\u308b\n  const PROJECT_ID = '**********';\n  \/\/VertexAI\u306eAPI\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8URL\u3092\u8a2d\u5b9a\u3059\u308b\n  let apiUrl = `https:\/\/us-central1-aiplatform.googleapis.com\/v1\/projects\/${PROJECT_ID}\/locations\/us-central1\/publishers\/google\/models\/text-bison:predict`;\n  \/\/VertexAI\u3078\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8a2d\u5b9a\n  let prompt = \"PHP\u3068Python\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b?\";\n  \/\/\u82f1\u8a33\u3057\u305f\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u52a0\u3048\u3001Vertex\u306eAPI\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fc5\u8981\u306a\u30da\u30a4\u30ed\u30fc\u30c9\u3092\u8a2d\u5b9a\n  const payload = {\n    \"instances\": [\n      { \"prompt\": LanguageApp.translate(prompt,'ja','en') }\n    ],\n    \"parameters\": {\n      \"temperature\": 0.2,\n      \"maxOutputTokens\": 256,\n      \"topK\": 40,\n      \"topP\": 0.95\n    }\n  };\n  \/\/payload\u3084HTTP\u901a\u4fe1\u7a2e\u5225\u3001\u8a8d\u8a3c\u60c5\u5831\u3092option\u3067\u8a2d\u5b9a\n  const options = {\n    'payload': JSON.stringify(payload),\n    'method' : 'POST',\n    'muteHttpExceptions': true,\n    'headers': {\"Authorization\": \"Bearer \" + ScriptApp.getOAuthToken()},\n    'contentType':'application\/json'\n  };\n  \/\/VertexAI\u306bAPI\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308a\u3001\u7d50\u679c\u3092\u5909\u6570\u306b\u683c\u7d0d\n  const response = JSON.parse(UrlFetchApp.fetch(apiUrl, options).getContentText());\n  \/\/API\u30ec\u30b9\u30dd\u30f3\u30b9\u304b\u3089\u306e\u5fdc\u7b54\u7d50\u679c\u3092\u65e5\u672c\u8a9e\u306b\u548c\u8a33\u3057\u3066\u623b\u308a\u5024\u3067\u8fd4\u3059\n  console.log(LanguageApp.translate(response.predictions[0].content,'en','ja'));\n}<\/code><\/pre>\n\n\n\n<p><strong>\u203bVertex AI\u306f\u73fe\u6642\u70b9\u3067\u65e5\u672c\u8a9e\u672a\u5bfe\u5fdc\u306e\u305f\u3081\u3001\u5165\u529b\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u82f1\u8a33\u3001\u751f\u6210\u7d50\u679c\u306e\u548c\u8a33\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\uff15\uff0e2\u884c\u76ee\u306ePROJECT_ID\u306e\u5b9a\u6570\u306bGCP\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u767b\u9332\u6642\u306b\u63a7\u3048\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u756a\u53f7\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"180\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_005-320x180.jpg\" alt=\"GCP\u306e\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u767b\u9332\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u4ed8\u4e0e\u3055\u308c\u305f\u7121\u6599\u30af\u30ec\u30b8\u30c3\u30c8\u6570\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u3068\u3082\u306b\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u756a\u53f7\u304c\u8868\u793a\" class=\"wp-image-7998\"\/><\/figure>\n\n\n\n<p>\u4ee5\u4e0a\u3067Vertex AI\u306eAPI\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308bGAS\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u6e96\u5099\u304c\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5b9f\u884c\u30ed\u30b0\u306bBard\u304b\u3089\u306e\u5fdc\u7b54\u7d50\u679c\u3068\u540c\u69d8\u306e\u751f\u6210\u7d50\u679c\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"535\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_014-1024x535.jpg\" alt=\"Google Apps Script(GAS)\u3067Bard\u306eAPI\u3068\u3082\u8a00\u3048\u308bVertex AI\u306eAPI\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5b9f\u884c\u30ed\u30b0\u306bBard\u540c\u69d8\u306e\u751f\u6210\u7d50\u679c\u304c\u51fa\u529b\" class=\"wp-image-8007\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_014-1024x535.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_014-300x157.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_014-768x401.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_014-530x277.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_014-565x295.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_014-710x371.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_014-725x379.jpg 725w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2023\/07\/20230724_auto_014.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Vertex AI\u306fBard\u3068\u540c\u3058LLM\u300cPaLM2\u300d\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001Bard\u306e\u751f\u6210\u7d50\u679c\u3068\u905c\u8272\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>ChatGPT\u306eAPI\u306b\u52a0\u3048\u3066\u3001Bard\u3082Vertex AI\u306eAPI\u3092\u4f7f\u3048\u3070\u3001GAS\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>ChatGPT\u306eAPI\u3092GAS\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u65b9\u6cd5\u2193<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580 wp-block-embed-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"75kMZuFPoj\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=7438\">GAS\u3067ChatGPT\u306eAPI\u30ea\u30af\u30a8\u30b9\u30c8\u65b9\u6cd5\uff01\u6587\u8108\u306b\u6cbf\u3063\u305f\u5fdc\u7b54\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u89e3\u8aac<\/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;GAS\u3067ChatGPT\u306eAPI\u30ea\u30af\u30a8\u30b9\u30c8\u65b9\u6cd5\uff01\u6587\u8108\u306b\u6cbf\u3063\u305f\u5fdc\u7b54\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u89e3\u8aac&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=7438&#038;embed=true#?secret=rA8dPnkXDE#?secret=75kMZuFPoj\" data-secret=\"75kMZuFPoj\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Vertex AI\u306f\u65e5\u672c\u8a9e\u672a\u5bfe\u5fdc(\u82f1\u8a9e\u306e\u307f)<\/h2>\n\n\n\n<p>\u306a\u304a\u3001Vertex AI\u306eAPI\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308bGoogle Apps Script(GAS)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u6ce8\u91c8\u3057\u305f\u901a\u308a\u3001Vertex AI\u306f\u65e5\u672c\u8a9e\u306b\u306f\u672a\u5bfe\u5fdc\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001API\u306b\u30bb\u30c3\u30c8\u3059\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u306f\u82f1\u8a9e\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001GAS\u306b\u306fLanguageApp.translate\u30e1\u30bd\u30c3\u30c9\u3067\u82f1\u8a33\u30fb\u548c\u8a33\u304c\u7c21\u5358\u306b\u5b9f\u88c5\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u65e5\u672c\u8a9e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u82f1\u8a33\u3057\u3001\u82f1\u8a9e\u306e\u751f\u6210\u7d50\u679c\u3092\u548c\u8a33\u3059\u308c\u3070\u3001\u65e5\u672c\u3067Vertex AI\u306e\u51e6\u7406\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001\u3084\u3084\u6a5f\u68b0\u7ffb\u8a33\u611f\u306e\u3042\u308b\u6587\u7ae0\u306b\u306a\u308b\u306e\u3067\u3001DeepL\u306eAPI\u3092\u4f7f\u3046\u306e\u3082\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u3067Bard\u3092API\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001Vertex AI\u306eAPI\u3092GAS\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Vertex AI\u306fGoogle Cloud Platform(GCP)\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d3\u30b9\u3067\u3001Bard\u3068\u540c\u3058\u300cPaLM2\u300d\u306e\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb\u304c\u5229\u7528\u3067\u304d\u308bAPI\u3067\u3059\u3002<\/p>\n\n\n\n<p>GCP\u306b\u5229\u7528\u767b\u9332\u3057\u3066\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u767b\u9332\u3057\u305f\u5f8c\u3001Vertex AI\u306eAPI\u3092\u6709\u52b9\u5316\u3059\u308c\u3070\u3001GAS\u3067\u3082\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>GAS\u306e\u30de\u30cb\u30e5\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308bappsscript.json\u306e\u4fee\u6b63\u306a\u3069\u5c11\u3057\u624b\u9593\u306f\u304b\u304b\u308a\u307e\u3059\u304c\u3001GAS\u3092\u4f7f\u3063\u3066\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u5165\u529b\u3057\u3001Bard\u306e\u3088\u3046\u306a\u751f\u6210\u7d50\u679c\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Vertex AI\u306eAPI\u306f\u307e\u3060\u65e5\u672c\u8a9e\u672a\u5bfe\u5fdc\u3067\u3059\u304c\u3001GAS\u306a\u30891\u884c\u3067\u82f1\u8a33\u30fb\u548c\u8a33\u306e\u7ffb\u8a33\u51e6\u7406\u304c\u5b9f\u88c5\u3067\u304d\u308b\u306e\u3067\u3001\u65e5\u672c\u8a9e\u306e\u30a4\u30f3\u30d7\u30c3\u30c8\u30fb\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u7d39\u4ecb\u3057\u305fVertex AI\u306eAPI\u3092GAS\u3067\u64cd\u4f5c\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u6539\u826f\u3057\u3066\u3001Bard\u306e\u3088\u3046\u306a\u751f\u6210\u7d50\u679c\u3092\u5f97\u3089\u308c\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u751f\u6210AI\u306eBard\u3092API\u3067\u5229\u7528\u3057\u305f\u3044\u5834\u5408\u3001GCP(Google Cloud Platform)\u306bVertexAI\u306eAPI\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002 Google Apps Script(GAS)\u3067VertexAI\u306eAPI\u306b\u30ea [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8007,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2,1265],"tags":[1177,1271,14,1270],"class_list":["post-7993","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-gas","category-ai","tag-bard","tag-bardapi","tag-gas","tag-vertexai"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7993"}],"version-history":[{"count":7,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7993\/revisions"}],"predecessor-version":[{"id":8016,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7993\/revisions\/8016"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/8007"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}