ðLINE Botã®æäœæ§ãè¯ããªãMessaging APIã®æ©èœçŽ¹ä»ïŒæžç±å·çã®äŒç»ã«ã€ããŠïŒTOU 4åŠæã®å±¥ä¿®ç§ç®
2023幎12æ23æ¥ãåææ¥ã
ããã§ã¯ããããã®è¶£å³ãšåŠã³ã®èšé²ããéçºã»å·çäœæ¥ã®é²æã«ã€ããŠæžããŠããŸãã
ä»æ¥ã¯ãååŸããåºæ¬æ å ±æè¡è è©Šéšãåãã«ãããŸããçŽ1ã¶æã®å匷æéã§ããããå¹ åºãç¯å²ã®åºç€ç¥èãåŠã¹ãŠæ¥œããã£ãã§ãããããªãªãã§ä»é±ã¯æè¡æžå·çã«åããŠèããæŽçããŠããã®ã§ãæ¬èšäºã§ã¯ãã®ãããã®ã話ãããŸãã
ãããŸã§ã®èšé²ã¯ãã¬ãžã³ã«ãŸãšããŠããŸãã
LINE botã®æäœæ§ãè¯ããªãMessaging APIã®æ©èœçŽ¹ä»
éçºã®ã話ãåã¯LINE Messaging APIã䜿ã£ãŠLINE Botãããã€ãå¶äœããŠããã®ã§ããããã®APIã«ã¯äŸ¿å©ãªæ©èœããããããããŸãã
Messaging APIã«ã€ããŠã¯ãã¡ãã
ããã§çŽ¹ä»ããã®ã¯ãåã䜿ã£ãããšã®ããæ©èœã®äžãããå®è£ ã®æéã«å¯ŸããŠèŠãç®ãæ Œæ®µã«è¯ããªã£ããããŠãŒã¶ãŒã®æäœæ§ãäžãããšæããŠãããã®ããåã»ã¬ã¯ãã§3ã€ã»ã©çŽ¹ä»ããŸãã
ãªããã¡ãã¥ãŒ
ãŸãã¯ãã¿ããªå€§å¥œãããªããã¡ãã¥ãŒãã§ããããã¯ããããäžçªäººæ°ã§ãæ å ±ãå€ãåºãŠããŸããã
ãªããã¡ãã¥ãŒãšã¯ãããŒã¯ç»é¢ã®äžéšã®ããŒããŒãå ¥åéšåã«è¡šç€ºãããã¡ãã¥ãŒã®ããšã§ãã
åã¯æ®å¿µãªãããã¶ã€ã³æ§ãçç¡ãªã®ã§ããããªæåã ãã®ã·ã³ãã«ãªæãã«ãªã£ãŠãŸããâŠããªãŒçŽ æã䜿ã£ããCanvaã§äœã£ããããã°ããããã§ããã¶ã€ã³ã«ãã ããããšãã§ããŸãã
å®éã«ãªããã¡ãã¥ãŒãäœãéã«ã¯ãAPIã䜿ããããLINE Official Account Managerã§Webäžã§äœã£ã¡ããã®ãæç¶ã©ã¯ã§ãããã®å Žåã¯æ倧2500Ã1686ãã¯ã»ã«ã®ç»åã§6åïŒ2Ã3ïŒã®ã¡ãã¥ãŒãé 眮ããããšãã§ããŸãã
ãããã¶ã€ã³æ§ãéèŠâŠããšãã°ã€ã©ã¹ãã®äžã§ã¿ããã§ããå Žæããã¯ã»ã«åäœã§èªç±ã«æå®ããããããã°ã©ã ã§ãªããã¡ãã¥ãŒã®åãæ¿ãã»åºçŸãå¶åŸ¡ããããããå ŽåãåºãŠããããAPIã䜿ããšè¯ããããããŸããã
ãã³ãã¬ãŒãã¡ãã»ãŒãž
次ã«çŽ¹ä»ãããã®ã¯ããã³ãã¬ãŒãã¡ãã»ãŒãžãã§ãã
ãã³ãã¬ãŒãã¡ãã»ãŒãžã¯ãããã¹ããç»åãšãšãã«ãŠãŒã¶ãŒãéžæã§ãããã¿ã³ä»ãã®ã¡ãã»ãŒãžãéãããšãã§ããæ©èœã§ãã
ãã³ãã¬ãŒãã¡ãã»ãŒãžã«ã¯ããã¿ã³ãã³ãã¬ãŒããã確èªãã³ãã¬ãŒãããã«ã«ãŒã»ã«ãã³ãã¬ãŒãããç»åã«ã«ãŒã»ã«ãã³ãã¬ãŒããã®4çš®é¡ããããããããã§ç»åã®æç¡ãéããã³ãã¬ãŒãæ°ã«éãããããŸããäžèšã®ç»åã§äœ¿ã£ãŠããã®ã¯ããã¿ã³ãã³ãã¬ãŒããã§ãã
ããã¯ãŠãŒã¶ãŒã«ãšã£ãŠãªããªãèŠèŠçã«ãã€ã³ãã¯ããããããLINEã®UI/UXãååã«çããããæ©èœã ãšæããŸãããŠãŒã¶ãŒãéžæè¢ã®ãã¿ã³ãã¿ãããããšãããã«å¯Ÿå¿ããã¢ã¯ã·ã§ã³ïŒã¡ãã»ãŒãžãWebãµã€ãã®URLãè¿ãããïŒããä»çµã¿ãªãããäœãããšãã§ããŸãã
ã¯ã€ãã¯ãªãã©ã€
æåŸã«çŽ¹ä»ããã䟿å©ãªæ©èœã¯ãã¯ã€ãã¯ãªãã©ã€ãã§ãã
ã¯ã€ãã¯ãªãã©ã€ã¯ãã¡ãã»ãŒãžãšåæã«ãŠãŒã¶ãŒãè¿ä¿¡ããããã®ãã¿ã³ãããŒã¯ç»é¢ã®äžéšã«è¡šç€ºããããšãã§ããæ©èœã§ãã
äžèšã®ç»åã¯ãŠãŒã¶ãŒã®å ¥å確èªãšããŠãã¯ãããããããã®éžæè¢ã衚瀺ãããŠããŸããéžæè¢ã®ãã¿ã³ãã¿ãããããšããã«å¯Ÿå¿ããã¢ã¯ã·ã§ã³ãè¿ããããªæ©èœãäœãããšãã§ããã®ã¯ãå ã»ã©ã®ãã³ãã¬ãŒãã¡ãã»ãŒãžãšåãã§ãã
ã§ããã¯ã€ãã¯ãªãã©ã€ã®ç¹åŸŽã¯ããã³ãã¬ãŒãã¡ãã»ãŒãžãããç°¡çŽ ã§éžæè¢ãããŒã¯å±¥æŽã«æ®ããªãããšã§ããèŠèŠçã«éªéã«ãªããªãããã«éžæè¢ããŠãŒã¶ãŒã«éãå Žåã«åœ¹ã«ç«ã€æ©èœã ãšæããŸãã
ãŸããã©ãããã¯ã€ãã¯ãªãã©ã€å°çšã®ã¢ã¯ã·ã§ã³ãããã€ãçšæãããŠããããã§ãããäŸãã°ãã¹ããã®ã«ã¡ã©æ©èœã䜿ã£ãããããšãã
ïŒçªå€ç·šïŒFlex Message
ããã¯çªå€ç·šãšãªããŸãããFlex Messageãšããèªç±ã«ãã¶ã€ã³ã§ããã¡ãã»ãŒãžãéãããšãã§ããæ©èœããããŸãã
ããã¯ç¢ºãã«äœ¿ãããªãããšãã¯ã³ã©ã³ã¯äžã®UIãäœãããšãã§ãããã§ããã§ããåãLINE Botã«æ±ããæ©èœãšããŠã¯ãã³ãã¬ãŒãã¡ãã»ãŒãžã§äºè¶³ããŠããã®ã§ããã¶ã€ã³ãäœãäžæéãããããã®Flex Messageã¯å®ã¯äœ¿ã£ãããšããªããã§ãã
LINE Botã§å®çŸãããç®çã«ããããšã¯æããŸããããã¶ã€ã³ãåŸæã ã£ããèŠã«ãªããªãæ¹ã¯ãè²ã ãšã«ã¹ã¿ãã€ãºã§ããFlexMessageã¯è¯ããããããŸãããFlex Message Simulatorãšããã®ãå ¬åŒã§çšæãããŠããã®ã§ãæ°ã«ãªãæ¹ã¯è§Šã£ãŠã¿ãŠãã ããã
æžç±å·çã®äŒç»ã«ã€ããŠïŒéäžçµé
å·çã®ã話ã以åã®èšäºïŒð002ïŒã§12æäžã«äŒç»æžãåºããããšæžããŠããŸãããããã ãã ããŠãããã¡ã«å¹Žãè¶ãã¡ããããã§ãã
蟲æ¥çŸå Žã§éçšããŠããäœæ¥æ¥å ±LINEbotããã¿ã«å·çãèããŠããŸããå ã»ã©çŽ¹ä»ãããããªæ©èœã䜿ã£ãŠããŠãŒã¶ãŒã䜿ããããªãã€ã³ã¿ã©ã¯ãã£ããªLINE botã®å ·äœçãªå®è£ æ¹æ³ãåŠã¹ãæžç±ã«ããããªããšèãããŸãã
ã³ã³ã»ãããšã¿ãŒã²ããïŒæ¡ïŒ
ãããããŠæžç±ã®ã³ã³ã»ããã¯ãGASã§LINE Botå¶äœã«åãçµãã§ããããã°ã©ãã³ã°åŠç¿è ããAPIã«ã€ããŠããäžæ©åŠãã§ããŠãŒã¶ãŒã©ã€ã¯ãªä»çµã¿ãå®è£ ã§ããããã«ãªãïŒããšãããã®ãèããŠããŸãã
æžç±ã®ã¿ãŒã²ããã¯ã次ã®ãããªæ¹ãæ³å®ããŠããŸãã
æ¢ã«GASã§äœããã®LINE Botãäœã£ãããšããã人
ãŠãŒã¶ãŒã觊ããããªãã€ã³ã¿ã©ã¯ãã£ããªLINE Botãå¶äœããã人
Messaging APIã®ã¡ãã»ãŒãžãã¢ã¯ã·ã§ã³ã«ã€ããŠç解ãæ·±ããã人
å šãã®ããã°ã©ãã³ã°åå¿è åãã§ã¯ãããŸãããããããã¯ãGASã®åºæ¬ææ³ãåŠãã§LINE Botå¶äœã«ãã£ã¬ã³ãžããŠããæ¹ãäžçŽã¬ãã«ã«ã¹ãããã¢ããããããã®ééç¹ããã©ããŒãããããªæžç±ãæžãããè¯ããªããªããŠæã£ãŠããŸãã
ãšããã®ããåãå®éã«GASã§äœæ¥æ¥å ±ãå ¥åããLINE Botãå¶äœããŠãããšãã«ããŠãŒã¶ãŒããã®æ å ±ãã€ã³ã¿ã©ã¯ãã£ãã«ããããŠã¹ãã¬ã¹ãªãå ¥åããŠããããã«ã¯ã©ãå®è£ ããããããè©Šè¡é¯èª€ããŠããŸããã
ãããã£ãæ å ±ã¯èª¿ã¹ãã°åºãŠããŸãããGASã§ã®å®è£ ã§ã¯ãªãã£ããããã£ãšAPIãç解ã§ããŠããäžçŽè åãã®å 容ã ã£ããããŠãäžè²«ããŠãŸãšãŸã£ãŠããªããã§ãããã
ãããã£ãéšåãäžåã«ãŸãšããããšã§ããLINE Botã®äœ¿ãåæãè¯ãããŠãã£ãšãŠãŒã¶ãŒã«äœ¿ã£ãŠãããããïŒããšæã£ãŠããããã°ã©ãã³ã°åŠç¿è ã®æ¹ã«åœ¹ç«ãŠãŠããããã®ã§ã¯ãªãããªïŒãšèããŠããŸãã
æ±ãæè¡ãšå 容ã»æ§æïŒæ¡ïŒ
æžç±ã®äžã§æ±ãæè¡ã¯ããã³ããã°ã©ããŒã«åªããGASãšGoogleã¹ãã¬ããã·ãŒãã䜿ããŸãã
å 容ã«ã€ããŠã¯ãLINE Messagin APIã®ããã¥ã¡ã³ããèªãã§ã³ãŒãã«å€æããããæ¹ãåŠã³ãªãããåé ã§çŽ¹ä»ãããããªäŸ¿å©æ©èœãçµã¿åãããŠãã€ã³ã¿ã©ã¯ãã£ããªLINE Botãå®è£ ããããæ¹ãåŠã¹ããããªæ§æã«ãããã§ãã
以äžã¯çŸæç¹ã§ã®æ§ææ¡ã§ãã
ãŸãã¯APIã«ã€ããŠ
APIã®åºç€
GASã§APIãå©ãããæ¹
APIããã¥ã¡ã³ãã®èªã¿æ¹
åºæ¬ã®ã¡ãã»ãŒãžéä¿¡æ¹æ³ããããã
ãããŒããã£ã¹ãã¡ãã»ãŒãž
ããã·ã¥ã¡ãã»ãŒãž
å¿çã¡ãã»ãŒãž
ã¡ãã»ãŒãžã¿ã€ããšã¯ã€ãã¯ãªãã©ã€ã®æŽ»çš
ã¡ãã»ãŒãžã¿ã€ãã䜿ãããªã
ãã³ãã¬ãŒãã¡ãã»ãŒãž
ã¯ã€ãã¯ãªãã©ã€
ã¢ã¯ã·ã§ã³ãªããžã§ã¯ããç解ããã
ã¡ãã»ãŒãžã¢ã¯ã·ã§ã³
URIã¢ã¯ã·ã§ã³
ãã¹ãããã¯ã¢ã¯ã·ã§ã³
æ¥æéžæã¢ã¯ã·ã§ã³
ã€ã³ã¿ã©ã¯ãã£ããªæ©èœãå®è£ ããã
åã ã¡ç»é²æã«ãŠãŒã¶ãŒIDãååŸããŠãŒã¶ãŒåãšçŽä»ãã
ãŠãŒã¶ãŒããåãåã£ãããŒã¿ãã¹ãã¬ããã·ãŒãã«ä¿åãã
ãŠãŒã¶ãŒã®è¿çã«å¿ããŠæ¬¡ã®ã¢ã¯ã·ã§ã³ãè¿ã
ãããªãšããããªãâŠãæ°æã¡çã«ã¯ããã¡ãã£ãšåãããäžæ¹ã§ãLINE Botã®å°å ¥æ¹æ³ã«å šã觊ããªãã®ãããããªãã®ãããšããè¿·ãã¯ãããŸãã
ãã®èšäºãèªãã§ãã ãã£ãŠããæ¹ãããèå³ã®ããããŒããããã°ããã²æããŠãã ãããã
TOU 4åŠæã®å±¥ä¿®ç§ç®ãšã¹ã±ãžã¥ãŒã«
å æ¥22æ¥ïŒéïŒããã4åŠæã®ææ¥é ä¿¡ãã¹ã¿ãŒãããŸãããç§ç®æ°ãå°ãªããšã¯ããããŸãå¿ãããªããŸããã
åã4åŠæã«ç§ç®ç履修çãšããŠåè¬ããç§ç®ã¯ã次ã®3ã€ã§ãã
ããŒããŠã§ã¢ç·è«â ¡
ãã¶ã€ã³æèæŠè«
çµ±èšåŠå ¥é
å¬ã®ææã¯æéã®èéãå©ãããšããããæŒç¿å¯ãã®ç§ç®ãéžãã§å±¥ä¿®ããŠããŸãïŒåŸãã®ïŒã€ïŒã
ãã¶ã€ã³æèæŠè«ã¯ãæ ããã®å¿ ä¿®ç§ç®ã§ãããªãã ãä»ã®åè¬çã®æ¹ãšã³ãã¥ãã±ãŒã·ã§ã³ããšã課é¡ããããšäºåæ å ±ãåŸãŠããã®ã§ãæ£ç§çã«ãªãåã®äœè£ããããã¡ã«ã¯ãªã¢ããŠããããšã
ãŸãçµ±èšåŠå ¥éã¯ãæé€ç§ç®ãªã®ã§åæ¥èŠä»¶ã®å°éåäœã«ã¯ã«ãŠã³ãã§ããŸããããäžåºŠè °ãæ®ããŠåŠãã§ããããå 容ã ã£ãã®ã§å±¥ä¿®ããããšã«ããŸããã
4åŠæã®ææ¥é ä¿¡ã¯12æ22æ¥(é)ããã¹ã¿ãŒããåäœèªå®è©Šéšã幎ããŸããã§2æ16æ¥(é)ã2æ26æ¥(æ)ãæ瞟çºè¡šã3æ6æ¥(æ°Ž)ã«ãªããŸãã
éèš
ä»å¹Žãããæ®ããšããããšäžé±éã»ã©ã«ãªããŸãããã
åã¯æ¬æ¥ã®æ¹ã§å€åºããè¡äºãèœã¡çããå é±ã«ã¯äºåä»äºã®ç®åŠãã€ããŠã²ãšã€äžå®èŠçŽ ããªããªã£ãã®ã§ãè¿œã蟌ã¿ãããããã®ããã«ä»å¹Žã®ããæ®ããæ¶åããŠããŸããç¬
ã§ã¯ãæºåããŠååŸããã®è©Šéšã«è¡ã£ãŠããŸãïŒ
ãã®èšäºãæ°ã«å ¥ã£ãããµããŒããããŠã¿ãŸãããïŒ