èæ¯
äŒç€Ÿãšé¡§å®¢ãšã®ã³ãã¥ãã±ãŒã·ã§ã³ã¯é·ãéå€åããŠããŸãããé»åã¡ãŒã«ãé»è©±ã«çœ®ãæãããæåã«ãœãŒã·ã£ã«ãããã¯ãŒã¯ã次ã«ã¡ãã»ã³ãžã£ãŒãç»å ŽããŸããã åæããŠãä»ã§ã¯ã¯ããã«äŸ¿å©ã«ãªããŸããããããŠæãéèŠãªããšã¯ãFacebookãVKontakteãWhat's AppããŸãã¯Telegramã§ãµããŒãã®è³ªåãããéãå°ããããšã§ãã
è±å¯ãªãã£ã³ãã«ã¯çŽ æŽãããæ©äŒãæäŸããã ãã§ãªããããã€ãã®åé¡ãçã¿åºããŸãã
- 売äžããŒã¿ã®èª¬æãšåæã¯å°é£ã§ãã
- 人äºãã¹ã¯é¡§å®¢ã®äžæºã«ã€ãªãããŸãã
ãããã£ãŠãå€ãã®äŒæ¥ã¯ãããŒã¿ã®éçŽã1ãæã§èããŠããŸããããã¯ãå¶åŸ¡ãšç®¡çãç°¡åã§ãã 圌ãã®ããã«ãBitrix24 *ãµãŒãã¹ã«ã¯Open LinesããŒã«ããããŸããããã«ã€ããŠã¯ä»¥äžã§èª¬æããŸãã
ãšããã§ã ããã£ããããããå¿ èŠãªã®ã¯ãªãã§ããããšããå€ãã®å¿é ã®è³ªåã«ããã«çããŸããç§ãã¡ã®å Žåã䜿çšã¯è§£æ±ºããå¿ èŠã®ããã¿ã¹ã¯ã«äŸåããŸããè€é-ã«ã¹ã¿ããŒãµããŒããèªååã§ããŸãã
*ãã«ãïŒ Bitrix24ãµãŒãã¹ã¯ãäŒç€Ÿã®æ¥åãæŽçããããã®ã€ã³ã¿ãŒãããããŒã«ã®ã»ããã§ãã ããã«ã¯ãã¿ã¹ã¯ããã³ãããžã§ã¯ã管çããªã ããã£ãã«CRMãäŒç€Ÿã®å éšã¡ãã»ã³ãžã£ãŒãã¯ãŒãã³ã°ãœãŒã·ã£ã«ãããã¯ãŒã¯ãå€åæé管çãããã¥ã¡ã³ã管çãªã©ã®æ©èœãå«ãŸããŸãã
ä»çµã¿ïŒãŠãŒã¶ãŒãã¥ãŒ
ã¯ã©ã€ã¢ã³ãã¯ããœãŒã·ã£ã«ãããã¯ãŒã¯ãŸãã¯ã€ã³ã¹ã¿ã³ãã¡ãã»ã³ãžã£ãŒã§äŒç€Ÿã®å ¬åŒã¢ã«ãŠã³ãã«æžã蟌ã¿ãŸãã ãã®ã¡ãã»ãŒãžã¯ããã¹ãŠã®ãã£ãã«ã«å ±éã®åŠçãã¥ãŒã«å°çããŸãã ãããããã¡ãã»ãŒãžã¯Bitrix24ã¡ãã»ã³ãžã£ãŒå ã§å¿çããåŸæ¥å¡éã§é ä¿¡ãããŸãã ç解ã§ããããã«ãããã¯èªååãããããã»ã¹ã§ãããã¬ã¹ãã³ããŒã«ãšã£ãŠãã¯ã©ã€ã¢ã³ããäœæãããã£ãã«ã«éãã¯ãããŸããã
ä»çµã¿ïŒéçºè ããã®å€èŠ³
Microsoft Bot Frameworkãšã®çµ±å
Microsoft Bot Frameworkã¯ãã¯ã©ãŠãã§ã€ã³ããªãžã§ã³ããªãã£ããããããäœæã§ããç°å¢ã§ãããSkypeãTelegramããSlackãSMSãŸã§ãããŸããŸãªéä¿¡ãã£ãã«ãä»ããŠéä¿¡ã§ããŸãã ãããã·ãšããŠã䜿çšã§ããŸãã ãããã®ãã£ãã«ããšã«åå¥ã«çµ±åãå®è£ ããå¿ èŠããªããããããã¯äŸ¿å©ã§ãã
Microsoft Bot Frameworkãšã®çµ±åã®ããã«ãæ¢åã®Open Linesäœæ¥ã¹ããŒã ãããã€ãã®æ¹åãšãšãã«äœ¿çšãããŸããã
ç¹å¥ãªã³ãã¯ã¿ãµãŒããŒãäœæããŸããã ããã¯ããœãŒã·ã£ã«ãããã¯ãŒã¯ãã€ã³ã¹ã¿ã³ãã¡ãã»ã³ãžã£ãŒããªã³ã©ã€ã³ãã£ããããµã€ãäžã®ãã©ãŒã ãªã©ã®å€éšéä¿¡ãã£ãã«ãšBitrix24ã¯ã©ã€ã¢ã³ãéã®ãªã³ã¯ã§ãã ãµãŒããŒã®äž»ãªå©ç¹ïŒ
- ãœãŒã·ã£ã«ãããã¯ãŒã¯ããã³ã€ã³ã¹ã¿ã³ãã¡ãã»ã³ãžã£ãŒããBitrix24ãžã®ã¡ãã»ãŒãžé ä¿¡ãä¿èšŒããŸãã
- Bitrix24ã¯ã©ãŠããšããã¯ã¹çã®äž¡æ¹ã§åäœããŸãã
- ãœãŒã·ã£ã«ãããã¯ãŒã¯ãŸãã¯ã¡ãã»ã³ãžã£ãŒã®äŒç€Ÿã®å ¬åŒã¢ã«ãŠã³ããBitrix24ã«ãã°ããæ¥ç¶ã§ããŸãã
Bitrix24ã¯ã©ã€ã¢ã³ããšã³ãã¯ã¿ãµãŒããŒéã®ããŒã¿äº€æã¯ãç¬èªã®ãããã³ã«ã䜿çšããŠå®è¡ãããŸãã ãã®å ŽåããµãŒããŒã¯ã«ãŒã¿ãŒãšããŠæ©èœããçä¿¡ããŒã¿ãšçºä¿¡ããŒã¿ã®äºååŠçãè¡ããŸãã
ãµãŒããŒç°å¢ã®èŠä»¶ã¯Bitrix24ãšè¥å¹²ç°ãªããŸãïŒPHP 5.4以éãMySql 5.5.3ãInnoDBã
Bitrix24ã¯ã©ã€ã¢ã³ããšã³ãã¯ã¿ãµãŒããŒéã®ããŒã¿äº€æäžã®ãªãŒããŒããããæå°éã«æããããã«ã次ã®ããšã決å®ãããŸããã
- å€éšãã£ãã«ããã³ãµãŒããŒããã¡ãã»ãŒãžã«æ·»ä»ããããã¡ã€ã«ã転éããªãã§ãã ããã ãµãŒããŒã¯ãå€éšãœãŒã¹ããã®ãã¡ã€ã«ãžã®ãªã³ã¯ã®ã¿ãBitrix24ã«éä¿¡ããŸãã ãããŠãBitrix24ã¯ã©ã€ã¢ã³ãã¯ããããèªåã§ããŠã³ããŒãããŸãã
- Bitrix24ãããã¡ã€ã«ãéä¿¡ããå Žåã¯ããªã³ã¯ãéä¿¡ããã ãã§ããŠã³ããŒãã§ããŸãã ãã¡ã€ã«èªäœã¯Bitrix24.Diskã«ä¿åãããŸãã
- ã¡ãã»ãŒãžã®éä¿¡åŸã«é »ç¹ã«äœ¿çšãããã¢ã¯ã·ã§ã³ïŒã¡ãã»ãŒãžã®åä¿¡ãéä¿¡ãé ä¿¡ã¹ããŒã¿ã¹ã®éä¿¡ãã¡ãã»ãŒãžã®èªã¿åããªã©ïŒã®å Žåãå¿çãæåŸ ããã«æ¥ç¶ãéããŸãã
ã³ãã¯ã¿ãµãŒããŒã®ã¡ãã»ãŒãžãã¥ãŒ
ãµãŒããŒäžã®ã¡ãã»ãŒãžéä¿¡ãã¥ãŒã¯ãMySQLã«åºã¥ããŠå®è£ ãããŠããŸãã çŸåšãRedisã®ãããªããæŽç·Žãããæè»æ§ã®ããããŒã«ã¯å¿ èŠãããŸããã ããŒã¿ããŒã¹ããŒã¹ã®ãã¥ãŒã¯ãè¿œå ã®ãªãŒããŒããããåé¿ããç¶æãããããçŸåšã®è² è·ã«ç°¡åã«èããããšãã§ããŸãã
ããŒã¿ã«ããã°ããå©çšã§ããªãå Žåã§ãããã¥ãŒã¯ã¡ãã»ãŒãžé ä¿¡ãä¿èšŒããŸãã çä¿¡ã¡ãã»ãŒãžãåŠçãããããŒã¿ããŒã¹ã«é 眮ãããŸãã å¥ã®ããã»ã¹ãããŒã¿ããŒã¹å ã®ã¡ãã»ãŒãžãç¶ç¶çã«éžæããŠéä¿¡ããŸãã åæã«ãè€æ°ã®ã¡ãã»ãŒãžãããã±ããã圢æããããããããŒã¿ã«ã«éä¿¡ããŸãã
é 信確èªããµãŒããŒã«å°çããªãå Žåããã®ãOpen Lineããžã®ãã®ããŒã¿ã«ãžã®æ¬¡ã®éä¿¡ã¯ããããã¯æéã®çµäºåŸã«ã®ã¿è¡ãããŸãã åè©Šè¡ã®åŸã«ãããã¯ã®æéã¯å¢å ããŸãã æåŸã®è©Šè¡ã倱æããå Žåãã¡ãã»ãŒãžã®éä¿¡ã¯12æéãããã¯ãããŸãã åèšã§ãããŒã¿ã«ãžã®ã¡ãã»ãŒãžéä¿¡ã®æåã®è©Šè¡ãã24æéã«ãªããŸãã æåŸã®è©Šè¡ã®åŸããã®Open Lineã®ãã®ããŒã¿ã«ã®ãã¹ãŠã®ã¡ãã»ãŒãžãåé€ãããããã¯ã解é€ãããŸãã
ãµãŒããŒã確èªãåä¿¡ãããšãé ä¿¡ãããã¡ãã»ãŒãžã¯ãã¥ãŒããåé€ããããã®ãªãŒãã³åç·ã®ãããã¯ã解é€ãããŸãã ã€ãŸããæ°ããã¡ãã»ãŒãžã¯ããã«ããŒã¿ã«ã«éä¿¡ãããŸãã
ã³ãã¯ã¿ãµãŒããŒã®ã¡ã«ããºã
ããã¡ã¯ããªã¡ãœããããã¿ãŒã³ãé©çšããŠãåéä¿¡ãã£ãã«ãæ åœããã³ãŒããæŽçããŸããã åã³ãã¯ã¿ããµããŒãããã¡ãœããã®æšæºã»ãããå®çŸ©ããŸããã ããã«ãåãã£ãã«ã«ã¯ç¬èªã®ã¡ãœãããèšå®ã§ããŸãã
ãã£ãã«ãæ©èœãããã«ã¯ãããŒã¿ã«ã§åææ§æãå®è¡ããå¿ èŠããããŸãã ãŠãŒã¶ãŒã¯ãããè¡ããããŒã¿ã«ã¯ç¹å¥ãªæ¹æ³ã䜿çšããŠæ¥ç¶ã管çããŸãã ããŸããŸãªã¿ã€ãã®ã³ãã¯ã¿ã®èšå®ã¯ãã¡ãœããã®ã»ããã«ãã£ãŠå€§ããç°ãªããŸãã Microsoft Bot Frameworkã¯ãåçŽãªæ§æãªãã·ã§ã³ã䜿çšããŸãã ãªã¢ãŒãã®
saveSettings
ã¡ãœããã¯ãå¿ èŠãªãã©ã¡ãŒã¿ãŒãæž¡ãããããŒã¿ã«ããåŒã³åºãããŸãã ãããã¯ããŒã¿ããŒã¹ã«ä¿åãããå°æ¥ã®ãã£ãã«ã®äœæ¥ã§äœ¿çšãããŸãã
次ã«ãããŒã¿ã«ã¯ãªã¢ãŒã
testConnect
ã³ãã¯ã¿ãŒ
testConnect
åŒã³åºããŸãããã®
testConnect
ã¯ãæå®ãããããŒã¿ãšã®æ¥ç¶ã確èªããæ¥ç¶ãããããŒã¿ã«ã®å¯çšæ§ã確èªããŸãã
Webhookã¯ãBot Frameworkãµã€ãã§ããããäœæãããšãã«æå®ãããŸãã ãŠãŒã¶ãŒãèšå®ãããšãã«å¿ èŠãªã¢ãã¬ã¹ãæå®ããŸãã
ããŒã¿ã«åŽã®æ§æã€ã³ã¿ãŒãã§ãŒã¹ã¯æ¬¡ã®ããã«ãªããŸãã
åå¿è ã¯ãã¹ããããã€ã¹ãããã®ãŠã£ã¶ãŒãã䜿çšããŠãæ°ãããããããã°ããç»é²ã§ããŸãã
æ¥ç¶ã«æåãããšã3ã€ã®ããŒã¿æ§é ã§ã¬ã³ãŒããååŸããŸãã
ãµã€ãã«é¢ããæ å ±ãèšé²ããŸã ã éèŠãªãã©ã¡ãŒã¿ãŒã¯ããŒã¿ã«ãã¡ã€ã³ã§ãã ãµãŒããŒã¯ç¹å®ã®å Žåã«ããã«ã¢ã¯ã»ã¹ããŸãã
åç·/ã³ãã¯ã¿ã¬ã³ãŒããéããŸã ã 以äžãæ確ã«å®çŸ©ããŸãã
- ã³ãã¯ã¿ã¿ã€ã;
- ã¯ã©ã€ã¢ã³ãäžã®éããŠããåç·ã®IDã
- ãµã€ããžã®ãªã³ã¯ã
- WebHookãä»ããŠã¢ã¯ã»ã¹ãããšãã«èŠæ±ãåç §ãããªãŒãã³ã©ã€ã³ã決å®ããç¹å¥ãªããã·ã¥ã
- ã¡ãã»ãŒãžãã¥ãŒã®æ å ±ïŒã¯ã©ã€ã¢ã³ããžã®ã¡ãã»ãŒãžéä¿¡ã®è©Šè¡åæ°ãšéä¿¡ããããã¯ããæéã
ç¹å®ã®Open Lineã®ç¹å®ã®ã³ãã¯ã¿ã®æ¥ç¶ãã©ã¡ãŒã¿ã®èšé² ã ã³ãã¯ã¿ã®çš®é¡ã«ãã£ãŠããã©ã¡ãŒã¿ã®ã»ããã¯å€§ããç°ãªãå ŽåããããŸãã
Microsoft Bot Frameworkã䜿çšããŠãµãŒããŒã§çŽæ¥äœæ¥ãã
ããããã¬ãŒã ã¯ãŒã¯ã«ã¯ããã£ãã«ã®ã»ããå šäœãå«ãŸããŠããŸãã ãã®ãããããªã¢ã«ãã£ãã«ããšãä»®æ³ãã£ãã«ãã®æŠå¿µãå°å ¥ããŸããã
Botframework
ã¯ãåäžã®é£çµ¡å ã䜿çšãããããå®éã®ãã£ãã«ã§ãã
Botframework.skype
ã¯ãMicrosoft Bot Frameworkãä»ããŠSkypeããããšã®äœæ¥ãå®è£ ããä»®æ³ãã£ãã«ã§ãã
ã³ãã¯ã¿ãæ©èœããã«ã¯ïŒ
1.ãããã®èšå®ã§ãå¿ èŠãªWebHookãæå®ããŸãã
2.ãBitrix24ãã®ãã£ã³ãã«èšå®ã§æ£ããèšå®ã瀺ããŸãã
- ããããã³ãã«;
- ã¢ããªã±ãŒã·ã§ã³ID
- ã¢ããªã±ãŒã·ã§ã³ã®ç§å¯ã
WebHookã®ãããã§ãã³ãã¯ã¿ãµãŒããŒã¯ãã®ããããæ¥ç¶ãããŠãããªãŒãã³ã©ã€ã³ãå€å¥ããŸãã ãã€ã³ãã£ã³ã°ãèŠã€ãããªãã£ãå Žåããšã©ãŒãè¿ãããŸãã
ãšã©ãŒããªãå Žåãåä¿¡ããããŒã¿ãåŠçããŸãã
- ã¯ã©ã€ã¢ã³ããšãµãŒããŒéã®äº€æã®åœ¢åŒã§ããŒã¿ã®é åã圢æããŸãã
- ããã¹ãã解æãããã¹ãŠã®ãšã³ãã£ãã£ãç解å¯èœãªBitrix24ã¡ãã»ã³ãžã£ãŒåœ¢åŒã«å€æããŸãã ãã£ã³ãã«ããšã«ããããã®å€æã¯ç°ãªããŸãã
- ãã¹ãŠã®çä¿¡çµµæåããŠãããŒãµã«çµµæå圢åŒã«å€æããŸãã ç§ãã¡ã¯ããã¹ãŠã®ãã£ã³ãã«ããµããŒãããæ倧éã®ç¬é¡ãã«ããŒããããšããŸããã
ãã¹ãŠã®å€æåŸãã¡ãã»ãŒãžã¯ã¡ãã»ãŒãžãã¥ãŒã«è¿œå ãããŸãã
Bitrix24ããå€éšã¡ãã»ã³ãžã£ãŒã«ã¡ãã»ãŒãžãéä¿¡ãããšããã圢åŒããå¥ã®åœ¢åŒãžã®éå€æãå®è¡ãããŸãã ã¡ãã»ãŒãžã¯ãPOSTã¡ãœãã
/v3/conversations/{conversationId}/activities
ã䜿çšããŠéä¿¡ãããŸãã éä¿¡ã«å¿ èŠãªããŒã¿ã¯ãã¹ãŠã¡ãã»ãŒãžã«ä»å±ããŠããŸãã
ãã®å Žåããã€ããªããŒã¿ã¯éä¿¡ãããŸããã ãã¹ãŠã®æ·»ä»ãã¡ã€ã«ã¯Bitrix24.Diskã«å ¥ãããããªã³ã¯ãšããŠéä¿¡ãããŸãã ããã«ããããã©ãã£ãã¯ãç¯çŽãããŸãã ãŸããå¿ èŠã«å¿ããŠããã€ã§ããã¡ã€ã«ãžã®ã¢ã¯ã»ã¹ãéããããšãã§ããŸãã
ãªãŒãã³ã©ã€ã³ã®ä»çµã¿
ãã£ããã¯ããœãŒã·ã£ã«ãããã¯ãŒã¯ãŸãã¯ã¡ãã»ã³ãžã£ãŒã®ãŠãŒã¶ãŒããã®ã¡ãã»ãŒãžã§å§ãŸããŸãã åäžã®ãšã³ããªãã€ã³ãã䜿çšãããŸãã ããã¯ãOpen Lineããã·ã¥ãå«ãGETãã©ã¡ãŒã¿ãŒãæã€åäžã®URLã§ãã ããã·ã¥ã䜿çšããŠãã·ã¹ãã ã¯çä¿¡ã¡ãã»ãŒãžã®éä¿¡å ã決å®ããŸãã
æ¥ç¶ã®äžææ§
å€éšã·ã¹ãã ïŒã°ã«ãŒãããããïŒã®åããšãã»ã³ã¹ãè€æ°ã®ããŒã¿ã«ãŸãã¯åãããŒã¿ã«å ã®ç°ãªããªãŒãã³ã©ã€ã³ã«æ¥ç¶ããããšããå ŽåããããŸãã ãã®ãããªã±ãŒã¹ãåŠçãããªãå Žåãç°åžžãªç¶æ³ãšé害ãçºçããå¯èœæ§ããããŸãã ãã®ãããæ¥ç¶ã®äžææ§ã確èªããã¡ã«ããºã ãå®è£ ããŸããã
ç°ãªããã£ãã«ã®åæ¥ç¶ã®è©Šè¡ã¯ãç°ãªãæ¹æ³ã§å®çŸ©ãããŸãã Microsoft Bot Frameworkã¯ãã·ã¹ãã å ã®ç¹å®ã®ãããèå¥åã®ååšã確èªããŸãã çŸåšã®æ¥ç¶ãå¯äžã®ãã®ã§ã¯ãªãå ŽåïŒç¹°ãè¿ãïŒãéåžžã©ããæ©èœãç¶ãã以åã®æ¥ç¶ã®ããŒã¿ã¯ãµãŒããŒããå®å šã«åé€ãããŸãã åæã«ããªã¯ãšã¹ããããŒã¿ã«ã«éä¿¡ããããã®Open Lineã³ãã¯ã¿ã«ãç·æ¥ãã®ããŒã¯ãä»ããããããã管çè ã®æ³šæãå¿ èŠã§ãã
Bitrix24ã®ã¯ã©ã€ã¢ã³ãéšåã®ã¡ã«ããºã
ã³ãã¯ã¿ã®ã¯ã©ã€ã¢ã³ãã¢ãžã¥ãŒã«ã¯æ¬¡ã®ç®çã§äœ¿çšãããŸãã
- éä¿¡ãã£ãã«ã®æ¥ç¶èšå®ã
- ã¡ãã»ãŒãžã®åä¿¡ãåŠçãããã³Bitrix24ã¡ãã»ã³ãžã£ãŒåœ¢åŒãžã®å€æã ã€ãã³ãã®ãã®åŸã®çæã
- ãŠãŒã¶ãŒåŠçïŒå€éšãŠãŒã¶ãŒã«é¢é£ä»ããããŠããBitrix24ã®ãŠãŒã¶ãŒããŒã¿ãç»é²ãŸãã¯æŽæ°ããŸãã
- ã¡ãã»ãŒãžä»ãã®ãã¡ã€ã«ãããŠã³ããŒãããŸãã
Open Linesã¢ãžã¥ãŒã«ã¯ãã¡ãã»ãŒãžã®ã«ãŒãã£ã³ã°ãã¡ãã»ãŒãžãã¥ãŒã®äœæããªãã¬ãŒã¿ãŒããã®ä»ã®æ©èœãžã®èªå°ãæ åœããŸãã
ã¯ã©ã€ã¢ã³ãã§ã®ããŒã¿äº€æã®å®è£
Open Linesã¢ãžã¥ãŒã«ã§ã¯ã
Output
ã¯ã©ã¹ããµãŒããŒãžã®ã¡ãã»ãŒãžã®éä¿¡ãšè¿œå åŠçãæ åœããŸãã
query
ã¡ãœããã¯ããªã¢ãŒããµãŒããŒãžã®çºä¿¡ãã±ãããçŽæ¥åœ¢æããã¡ãã»ãŒãžã«çœ²åããŸãã
Output
ã¯ã©ã¹ã¯ããããžãã¯ãã¡ãœããã䜿çšããŠããªã¢ãŒããµãŒããŒã¡ãœãããããŒã«ã«ã§ãããã®ããã«åŒã³åºããŸãã ããã«ã¯é·æãšçæããããŸãã
æ¬ ç¹ ïŒãããžãã¯ãã¡ãœããã®é床ã¯ãããã«é ããªããŸãã ãããããããã¯å€éšã·ã¹ãã ã§ã®äœæ¥ã«äœ¿çšããããããé 延ã¯ããã»ã©é¡èã§ã¯ãããŸããã
å©ç¹ ïŒå éšã¡ãœãããšåæ§ã«å€éšã¡ãœããã䜿çšã§ããŸãã ã€ãŸããéçºè ã¯ããŒã«ã«ã§ãªã¢ãŒãã¡ãœãããåŒã³åºããŸãã ãã¹ãŠã®äœæ¥ã¯æšæºåãããŠããŸãã ã¯ã©ã€ã¢ã³ãã«ã¡ãœããã®ãªã¹ããä¿æããå¿ èŠã¯ãªãããã®ãªã¹ããåæããå¿ èŠããããŸããã ã¡ãœããããµãŒããŒã«è¿œå ããã ãã§ååã§ãããã¯ã©ã€ã¢ã³ãã§äœ¿çšã§ããŸãã
å€éšãµãŒããŒã®äžéšã®ã¡ãœããã«ã¯ããŒã«ã«ã©ãããŒããããŸãã ãªã¯ãšã¹ãããªã¢ãŒããµãŒããŒã«éä¿¡ããåã«ãããŸããŸãªã¿ã¹ã¯ãå®è¡ããŸãã ããšãã°ãïŒãªã¢ãŒããµãŒããŒã®è² è·ã軜æžããããã«ïŒããŒã¿ããã£ãã·ã¥ããååŠçãè¡ããŸãã
ãã¹ãŠã®çä¿¡èŠæ±ã¯ã
Input
ã¯ã©ã¹ã«ãã£ãŠåŠçãããŸãã çä¿¡ãã±ããã解æãã眲åïŒèŠæ±ãå®éã«ãµãŒããŒããéä¿¡ããããã®ã§ããããšïŒãæ€èšŒããçä¿¡èŠæ±ãã«ãŒãã£ã³ã°ãã
Router
ã¯ã©ã¹ã«ããŒã¿ããªãã€ã¬ã¯ãããŸãã
çä¿¡ãªã¯ãšã¹ãã®çš®é¡ïŒ
- æ¥ç¶ãã¹ã ã ãã®ã¡ãœããã¯ãã¯ã©ã€ã¢ã³ãã®å¯çšæ§ã確èªãããšãã«ãªã¢ãŒããµãŒããŒã«ãã£ãŠåŒã³åºãããŸãã
- åä¿¡ã¡ãã»ãŒãžïŒãã¹ãŠã®ã¿ã€ãïŒ ã 詳现ã¯ä»¥äžãã芧ãã ããã
- é ä¿¡ã¹ããŒã¿ã¹ ã é ä¿¡ã¹ããŒã¿ã¹ã«å ããŠå€éšã¡ãã»ãŒãžIDãä»å±ããŠãããããå€éšããŒã¿ã管çã§ããŸãã ããšãã°ãå€éšIDãããããªããšããªã¢ãŒããµãŒããŒäžã®ã¡ãã»ãŒãžãåé€ã§ããŸããã
- ã¹ããŒã¿ã¹ãèªã¿åããŸã ã
- ã³ãã¯ã¿ãç¡å¹ã«ããŸã ã ãã®ã³ãã¯ã¿ãå¥ã®ããŒã¿ã«ãŸãã¯ãªãŒãã³ã©ã€ã³ã«æ¥ç¶ããããšãã«åŒã³åºãããŸãã
Bitrix24ã¯ã©ã€ã¢ã³ãã«ããã¡ãã»ãŒãžã®åä¿¡
input
ã¯ã©ã¹ã¯ãããŒã¿ã«ããçä¿¡ã¡ãã»ãŒãžïŒã¡ãã»ãŒãžé åïŒãåãåããåŠçãéå§ããŸãã ã¡ãã»ãŒãžé ä¿¡éç¥ããµãŒããŒã«éä¿¡ãããŸãã 圌ã¯ãããããã¥ãŒããåé€ããã¡ãã»ãŒãžã®ãããªãéä¿¡ã®ããã¯ã解é€ããŸãã
åä¿¡ããã¡ãã»ãŒãžã¯ããã«åŠçãããŸãã ã·ã§ãŒãããŒã çµµæåã¯ãBitrix24ã¡ãã»ã³ãžã£ãŒã§ãµããŒããããŠããç¹å¥ãª
icon
ã¿ã°ã«å€æãã
icon
ã ããã«ãããå©çšå¯èœãªãã¹ãŠã®çµµæåããµããŒããããŸãã
ãã¹ãŠã®æ·»ä»ãã¡ã€ã«ãåŠçãããŸãã ãããã¯ããŠã³ããŒããããå éšã·ã¹ãã ã«ç»é²ãããŸãã ãŸãããã¡ã€ã«ãèšè¿°ããé åã§ã¯ããã¡ã€ã«ãžã®ãªã³ã¯ãå éšIDã«çœ®ãæããããŸãã
ãœãŒã·ã£ã«ãããã¯ãŒã¯ãŸãã¯ã¡ãã»ã³ãžã£ãŒã®å€éšãŠãŒã¶ãŒçšã«äœæãããå éšãŠãŒã¶ãŒã®ããŒã¿ã«äžã®ååšã確èªããŸãã ããã§ãªãå Žåã¯ãäœæãããŸãã ãŠãŒã¶ãŒãååšããå ŽåããŠãŒã¶ãŒããŒã¿ããã®md5ããã·ã¥ããã§ãã¯ãããŸãã åä¿¡ããããŒã¿ãšæ¯èŒãããããã·ã¥ãç°ãªãå ŽåããŠãŒã¶ãŒããŒã¿ãæŽæ°ãããŸãã 次ã«ãåä¿¡ããé åã§ãBitrix24ããŒã¿ã«å ã®ãŠãŒã¶ãŒIDã«çœ®ãæããããŸãã
ãã®ãããªå€æãããããŒã¿é åã¯ãçæããã
OnReceivedMessage
ã€ãã³ãã«é 眮ãããŸãã Open Linesã¢ãžã¥ãŒã«ã«ãã£ãŠããã£ããããããŸãã
çºä¿¡ãªã¯ãšã¹ããBitrix24ã
çºä¿¡èŠæ±ã¯å®éã«ã¯åŠçãããŸããã ãããã¯ãªã¢ãŒãã³ãã¯ã¿ãµãŒããŒã«ã«ãŒãã£ã³ã°ãããŸãã Bot Frameworkã®å Žåãè¿œå ã®ãã³ãã©ãŒãã¯ã©ã€ã¢ã³ãã§äœæãããŸãã
ãã®ã³ãã¯ã¿ã¯ãéä¿¡ã¡ãã»ãŒãžã§éä¿¡è ã«é¢ããæ å ±ãéä¿¡ããå¿ èŠããããšããç¹ã§ä»ã®ãã¹ãŠã®ã³ãã¯ã¿ãšç°ãªããŸãã æ¥ç¶ããããšãã«éä¿¡ãããŸããã ããããå ¥åã§ååŸã§ããŸãã ãã®ãããåãã£ãããšåãã€ã¢ãã°ã«é¢ãããµããŒãæ å ±ãä¿åããããã«ãåå¥ã®ããŒãã«ãäœæãããŠããŸãã
ãã®ã³ãã¯ã¿ã®çä¿¡ã¡ãã»ãŒãžã«ã€ããŠã¯ãå¿ èŠãªæ å ±ãéžæããŠä¿åãã
furtherMessageProcessing
ã¡ãã»ãŒãž
furtherMessageProcessing
ã¡ãœããã
furtherMessageProcessing
ãŸãã ãŸããBotframeworkãã£ãã«ã«ã¡ãã»ãŒãžãéä¿¡ãããšããsendMessageProcessingã¡ãœããã¯å¿ èŠãªããŒã¿ãæ··åããŸãã
çµè«ã®ä»£ããã«
çŸåšãã»ãšãã©ã®Bitrix24ãŠãŒã¶ãŒã¯ãBot Frameworkãã£ãã«ãæ¥ç¶ããŠãSkypeãä»ããŠèŠèŽè ãšé£æºããŠããŸãã èšäºã®å ¬éæç¹ã§ãæ¥ç¶ãããŠãããããã®æ°ã¯9000ã§ãã