$30 off During Our Annual Pro Sale. View Details »

Amazon Pinpointを用いて、LINEとメール配信のCRM設計 / AWS Dev Day 2022 B-2

Amazon Pinpointを用いて、LINEとメール配信のCRM設計 / AWS Dev Day 2022 B-2

AWS Dev Day 2022 Japan
2022/11/09 B-2
Amazon Pinpointを用いて、LINEとメール配信のCRM設計

おやつの定期便
https://snaq.me

直営点
https://kiyosumi.snaq.me/

hayato miyoshi

November 09, 2022
Tweet

More Decks by hayato miyoshi

Other Decks in Technology

Transcript

  1. Amazon PinpointΛ༻͍ͯ LINEͱϝʔϧ഑৴ͷCRMઃܭ גࣜձࣾεφοΫϛʔ CTO & co-founder ࡾ޷ ൏ਓ 2022.11.09

    Track B 14:00- 14:45
  2. ֓ཁ

  3. 3 ࣗݾ঺հ େֶଔۀޙݐஙઃܭࣄ຿ॴ΁ۈ຿ɻ ͦͷޙɺιϑτ΢ΣΞΤϯδχΞ΁ΩϟϦΞνΣϯδ͠ɺ2014೥ɺ geechsגࣜձࣾ΁ೖࣾɻٕज़ຊ෦ͷϦʔμʔͱͯ͠ϞόΠϧΞϓϦ ͷϓϩδΣΫτϚωʔδϟʔΛܦݧɻ 2015೥ɺגࣜձࣾεφοΫϛʔΛ૑ۀҎޙɺ CTOͱͯ͠ΤϯδχΞϦϯάνʔϜΛ཰͍͍ͯΔɻ CTO &

    co-founder ࡾ޷ ൏ਓ @miyoshihayato
  4. ͓΍ͭͷఆظศ 1,880ԁ (੫ࠐɾૹྉ330ԁ) ௚Ӧళ (ਗ਼੅നՏ) https://kiyosumi.snaq.me/ ϓϩςΠϯόʔ 5ຊೖ 1,525ԁ(੫ࠐɾૹྉ330ԁ) 10ຊೖ

    2,925ԁʢ੫ࠐɾૹྉ330ԁʣ άουδϟʔΩʔ 3ା 1,850ԁ(੫ࠐɾૹྉ330ԁ) ࣄۀ಺༰
  5. σʔλΛ׆͔ͨ͠঎඼։ൃ ʰ͓΍ͭମݧʱ ఆظศ͓ಧ͚ස౓ • ̎िؒʹ̍ճ • ̐िؒʹ̍ճ • ͓΍ͭ΁ͷϑΟʔυόοΫ •

    ϦΫΤετ • ޷͖ݏ͍ͷొ࿥ • ͓ಧ͚ΛॏͶΔ͝ͱʹ ΑΓ޷Έʹۙͮ͘BOX • BOXΛ։෧͢Δ࣌ͷɹ Θ͘Θ͘ײ • σʔλ෼ੳ • ঎඼։ൃ • ύʔιφϥΠζ ͞Ε͓ͨ΍ͭͷબఆ Ϣʔβʔ͔Βͷ ධՁσʔλΛ׆͔͠ɺ 1ϲ݄΄ͲͰ৽঎඼ͷ اը։ൃ͕Մೳ ঎඼։ൃαΠΫϧ
  6. 6 ͓΋͠Ζ͍ʂ ࣦഊΛڪΕͣʹνϟϨϯδ͢Δ͜ͱΛ঑ྭ͢ΔจԽ ΍ͬͯΈΑʂ ͭ͗ʹ͍͔ͦ͏ʂ ೉қ౓΍޻਺͡Όͳ͘ʮͦΕͬͯ໘ന͍ʁʯΛ࣠ʹɺ 
 ”ϫΫϫΫϑΝʔετ”Ͱߦಈ͠·͢ɻ 
 ͓΋͠Ζ͍΄͏͕΍Δؾ͕ग़Δ͠ɺ͓٬༷ʹتΜͰ͍͚ͨͩΔ͔Βɻ

    ͪ͝Όͪ͝Όݴͬͯͳ͍Ͱ”Φʔφʔγοϓ”Λ࣋ͬͯ·ͣ΍ͬͯΈΑ͏ ࣦഊ͍͍ͨͬͯ͠ɻֶͼ͕͋Ε͹Ṷ͚΋ͷɻ 
 ࣦഊΛڪΕͣͲΜͲΜ”νϟϨϯδ”͍͖ͯ͠·͠ΐ͏ɻ 
 ΈΜͳ΍͍͔͞͠Βࣦഊͨͬͯ͠େৎ෉ͩΑʂ εφοΫϛʔͰಇ͘ਓͨͪͷՁ஋؍
  7. 7 ༷ʑͳϝϯόʔ͕ଘࡏ͠εφοΫϛʔΛ૑͍ͬͯΔ ɾ஥ؒΛϦεϖΫτ͠ɺڞʹՁ஋Λ૑଄ग़དྷ͍ͯΔ͔ʁ ɾརଞతͳߦಈ͕Ͱ͖͍ͯΔ͔ʁ εφοΫϛʔͷ૊৫෩౔ νʔϜεφοΫϛʔ ͓΋͠Ζ͍ʂ ΍ͬͯΈΑʂ ͭ͗ʹ͍͔ͦ͏ʂ ͓΍ͭͱ͸ผʹεφοΫϛʔͷ૊৫෩౔

  8. SNAQ Scale Out ΤϯδχΞϦϯάͰࣄۀ੒௕ΛҾͬ ு͍͚ͬͯΔΑ͏ͳ։ൃΛ͍ͯ͜͠ ͏ɻͦͷҝʹ΋εέʔϧ͠΍͍͢࢓ ૊Έͷ։ൃΛ৺͕͚Α͏ɻ Next ೔ʑͷ௅ઓͷதͰࣦഊΛͯ͠͠·ͬͨ࣌ʹ Ͱ΋ɺ࣍΁ͷҰา͕౿Έग़͠΍͍͢࢓૊Έ

    ͮ͘ΓΛ৺͕͚Α͏ɻյ͠΍͍͢࢓૊Έͩ ͬͨΓɺ࠷଎Ͱ։ൃɾվળ͍͚ͯ͠ΔΑ͏ ͳ؀ڥΛ࣋ͪଓ͚Α͏ɻ Agile খ͘͞ૣ͘εϐʔυײΛ࣋ͬͯɺ ܧଓతʹվળΛੵΈॏͶ͍ͯ͜͏ɻ Quality Ϣʔβʔʹͱͬͯ Ұ൪ྑ͍΋ͷΛ࡞͍ͬͯ͜͏ɻ ΤϯδχΞνʔϜͷόϦϡʔ
  9. CRM Customer Relationship Management

  10. 10 $3.ͱฉ͍ͯ •ސ٬Λ؅ཧ͢Δ •ސ٬ͱͷؔ܎ੑΛҡ࣋΍޲্ͤ͞Δ •Ωϟϯϖʔϯ؅ཧ •ސ٬Λ෼ੳ͢Δ •ސ٬ੜ֔Ձ஋ʢLTVʣͷ޲্ ͳͲ

  11. 11 εφοΫϛʔͰ͸ ίχϡχέʔγϣϯͷऔΓํҎԼέʔε ݸผ ηάϝϯτ Email Πϯό΢ϯυ ͱ Ξ΢τόϯυ ରԠ

    શϢʔβʔͰ͸ͳ͘ Use caseʹ߹Θͤͯ ͦΕͧΕͷνϟωϧͰ௨஌ LINE ͦͷଞ SNSͳͲ ×
  12. 12 εφοΫϛʔͰ͸ ίχϡχέʔγϣϯͷऔΓํҎԼέʔε ݸผ ηάϝϯτ Email Πϯό΢ϯυ ͱ Ξ΢τόϯυ ରԠ

    શϢʔβʔͰ͸ͳ͘ Use caseʹ߹Θͤͯ ͦΕͧΕͷνϟωϧͰ௨஌ LINE ͦͷଞ SNSͳͲ ×
  13. ໨࣍ •ϝʔϧ΍LINE(ΧελϜνϟωϧ)ͷํ๏ •୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ •഑৴Λ؅ཧ͢Δํ๏ •഑৴ͷޮՌݕূ •ඇΤϯδχΞͱͷؔΘΓํ

  14. ϝʔϧ΍LINE(ΧελϜνϟωϧ)ͷํ๏

  15. 15 "NB[PO1JOQPJOUʹ͍ͭͯ •Email •SMS •ϓογϡ௨஌ͳͲ ଟ༷ͳνϟωϧ ϚʔέςΟϯάϝοηʔδ •ର৅ऀηάϝϯςʔγϣϯ •ςϯϓϨʔτ /

    ύʔιφϥΠζ •Ωϟϯϖʔϯ / δϟʔχʔ ෼ੳ •ϑΝωϧ •ϝʔϧͷOpen rate, Click rate
  16. 16 ϝʔϧͷઃఆ 1. ϓϩδΣΫτͷ࡞੒ 2. Emailͷઃఆ 3. ೝূ

  17. 17 ΧελϜνϟωϧͷ࡞Γํ 1. AWS LambdaͰ௨஌͢Δؔ਺ͷ࡞੒ 2. Lambdaؔ਺Λݺͼग़ͨ͢ΊͷAmazon PinpointΞΫηεڐՄΛ෇༩͢Δ 3. PinpointͰ௨஌͢Δͱ͖ʹΧελϜνϟωϧܦ༝Ͱૹ৴͢ΔΩϟϯϖʔϯ࡞੒

  18. 18 "84-BNCEBͰ௨஌͢Δؔ਺ͷ࡞੒ • ΧελϜνϟωϧ͸ ૹ৴෦෼ΛશͯࣗࣾͰ؅ཧ • ૹ৴ઌͷ؀ڥߏங (ΞΫηεΩʔ΍֎෦SDKͳͲ) • ड͚औΔσʔλ

    (jsonͰ஋Λऔಘ) • ϝοηʔδΛಈతʹมߋ͢Δॲཧ (໊લͳͲ) AWS Lambda Amazon Pinpoint AWS Lambda AWS Lambda AWS Lambda Aνϟωϧ Bνϟωϧ Cνϟωϧ
  19. 19 "84-BNCEBͰ௨஌͢Δؔ਺ͷ࡞੒ ड͚औΔσʔλ • ApplicationId – Ωϟϯϖʔϯ͕ଐ͢Δ Amazon Pinpoint ϓϩδΣΫτͷ

    IDɻ ࠷େ50ͷΤϯυϙΠϯτʹϝοηʔδΛ഑৴Ͱ͖Δ • ActivityId – ΩϟϯϖʔϯʹΑ࣮ͬͯߦதͷΞΫςΟϏςΟͷ IDɻ • CampaignId – Lambda ؔ਺Λݺͼग़ͨ͠ Amazon Pinpoint Ωϟϯϖʔϯͷ IDɻ • Data – ΧελϜνϟϯωϧʹૹ৴͢ΔϝοηʔδϖΠϩʔυΛؚΉ JSON จࣈྻɻ • Endpoints – ΩϟϯϖʔϯͷλʔήοτͱͳͬͨΤϯυϙΠϯτͷϦετɻ֤ϖΠϩʔυʹ͸ɺ࠷େ 50 ͷΤ ϯυϙΠϯτΛؚΊΔ͜ͱ͕Ͱ͖·͢ɻΩϟϯϖʔϯͷૹ৴ઌηάϝϯτʹ 50 Ҏ্ͷΤϯυϙΠϯτؚ͕· Ε͍ͯΔ৔߹ɺAmazon Pinpoint ͸͢΂ͯͷΤϯυϙΠϯτ͕ॲཧ͞ΕΔ·Ͱɺ܁Γฦؔ͠਺Λݺͼग़͠·͢ (࠷େͰҰ౓ʹ 50 ͷΤϯυϙΠϯτ)ɻ
  20. 20 -BNCEBؔ਺Λݺͼग़ͨ͢Ίͷ"NB[PO1JOQPJOUΞΫηεڐՄΛ෇༩͢Δ aws lambda add-permission \ --function-name myFunction \ --statement-id

    sid0 \ --action lambda:InvokeFunction \ --principal pinpoint.ap-northeast-1.amazonaws.com \ --source-arn arn:aws:mobiletargeting:ap-northeast-1:111122223333:apps/* --source-account 111122223333 ΧελϜνϟωϧΛਐΊΔͱ͖ʹPinpoint͔ΒLambdaͷΞΫηεڐՄΛ෇༩ͤͣ Ωϟϯϖʔϯ͸੒ޭ͍ͯ͠Δ͕Ұ޲ʹLambda͕ىಈ͠ͳ͍έʔε͕͋ΔͷͰ஫ҙ
  21. 21 ΧελϜνϟωϧܦ༝Ͱૹ৴͢ΔΩϟϯϖʔϯ࡞੒ νϟωϧͰΧελϜΛબ୒ ഑৴͢Δؔ਺Λબ୒

  22. AWS Step Functions Workflow Amazon S3 AWS Lambda AWS Lambda

    Amazon DynamoDB DONE? Amazon Simple Notification Service AWS Batch Users -*/&"1* Amazon Pinpoint Users Import Segment Create Campaign +40/ 'JMF Segment Info Custom Channel Amazon Simple Email 
 Service
  23. ഑৴ํ๏͸ͳΜͱͳ͘೺ѲͰ͖ͨ ҰํͰ഑৴͢ΔͨΊͷߟ͑ํ͸Ͳ͏͢Δ͔ େ͖͘෼͚Δͱ ୯ൃ഑৴ͱܧଓ഑৴ʹ෼͚ΒΕΔ

  24. ഑৴ํ๏͸ͳΜͱͳ͘೺ѲͰ͖ͨ ҰํͰ഑৴͢ΔͨΊͷߟ͑ํ͸Ͳ͏͢Δ͔ େ͖͘෼͚Δͱ ୯ൃ഑৴ͱܧଓ഑৴ʹ෼͚ΒΕΔ ୯ൃ഑৴ : 1౓͖Γͷ഑৴ / ಉ͡Ͱ΋ຖճίϯςϯπ͕େ͖͘ҟͳΔ (Ex.

    اըͷॳ௨஌ɺαʔϏεͷप೥ࡇ௨஌ͳͲ) ܧଓ഑৴ : ܧଓతʹ഑৴͢Δ (Ex. ຖिͷ৽঎඼௨஌ɺॳճొ࿥ͷΦϯϘʔσΟϯά௨஌ͳͲ)
  25. ୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ

  26. 26 ୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ ୯ൃ഑৴

  27. 27 ୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ ୯ൃ഑৴ ςετΛ܁Γฦ͢ ݁Ռ͕ग़ͨ৔߹ ܧଓ΁Ҡߦ ݁Ռ͕ग़ͳ͍৔߹ ͦͷ഑৴ࣗମετοϓ ੒Ռ͕ग़Δ഑৴Λ ߟ͑Δ

  28. 28 ୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ ୯ൃ഑৴ ܧଓ഑৴ ୯ൃ഑৴ ςετΛ܁Γฦ͢ ݁Ռ͕ग़ͨ৔߹ ܧଓ΁Ҡߦ ୯ൃ഑৴ ݁Ռ͕ग़ͳ͍৔߹

    ͦͷ഑৴ࣗମετοϓ ੒Ռ͕ग़Δ഑৴Λ ߟ͑Δ
  29. 29 ୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ ୯ൃ഑৴ ܧଓ഑৴ ୯ൃ഑৴ ςετΛ܁Γฦ͢ ݁Ռ͕ग़ͨ৔߹ ܧଓ΁Ҡߦ ୯ൃ഑৴ ݁Ռ͕ग़ͳ͍৔߹

    ͦͷ഑৴ࣗମετοϓ ੒Ռ͕ग़Δ഑৴Λ ߟ͑Δ A/Bςετ ίϯςϯπͳͲͷ ςετ࣮ࢪ
  30. 30 ୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ ୯ൃ഑৴ ܧଓ഑৴ ୯ൃ഑৴ ςετΛ܁Γฦ͢ ݁Ռ͕ग़ͨ৔߹ ܧଓ΁Ҡߦ ܧଓ഑৴ ܧଓ഑৴

    ୯ൃ഑৴ ݁Ռ͕ग़ͳ͍৔߹ ͦͷ഑৴ࣗମετοϓ ੒Ռ͕ग़Δ഑৴Λ ߟ͑Δ A/Bςετ ίϯςϯπͳͲͷ ςετ࣮ࢪ
  31. 31 ୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ ܧଓ഑৴ ୯ൃ഑৴ खಈͰ഑৴͍ͯ͘͜͠ͱ͸ݶք͕͋Γ ࣗಈͰૹ৴͢ΔྔΛ҆ఆతʹ͢Δ͜ͱͰ ϢʔβʔମݧΛগͣͭ͠޲্ͤ͞Δ͜ͱ͕Ͱ͖Δ ඞཁͳ௨஌͸ૣΊʹܧଓ഑৴ʹγϑτ͠ ޮՌ͕ྑ͘ͳ͍഑৴͸ഇࢭ͢Δ

  32. ഑৴Λ؅ཧ͢Δํ๏

  33. 33 ഑৴Λ؅ཧ͢Δํ๏ ഑৴͢ΔͨΊͷΞʔΩςΫνϟ͸͞·͟·͋Γɺςετ഑৴΍਺͕গͳ͍৔߹͸Ͳͷύλʔϯ Ͱ΋େ͖ͳࠩ͸ଘࡏ͠ʹ͍͘ɻ(޷Έɺ΍Γқ͞ͳͲ) AWS Lambda AWS Batch Amazon S3

    PC Amazon Simple Email 
 Service (Amazon SES) Amazon Simple Email 
 Service (Amazon SES) AWS Step Functions workflow খن໛ͷ഑৴ தʙେن໛ͷ഑৴ workflowͰͷ഑৴ ࣾ಺؅ཧը໘͔Β഑৴
  34. 34 ഑৴Λ؅ཧ͢Δํ๏ • 1೔ʹ1ճ΄Ͳͷ഑৴ͷछྨ͕૿͑Δ • ഑৴λΠϛϯάͷ؅ཧ • ഑৴ίϯςϯπ • ΤϥʔϋϯυϦϯά

    (௨஌Ͱ͖ͨͷ͔ࣦഊͨ͠ͷ͔ݕ஌) ഑৴͢Δछྨ͕1छྨͰ͋Ε͹ಛʹ1ͭͷLambdaΛ࡞੒͠഑৴͍͚ͯ͠͹ྑ͍͕ɺ छྨ͕ଟ͘ͳΔͱ͞·͟·ͳ͜ͱʹߟྀ͢Δඞཁ͕͋Δ
  35. 35 ഑৴Λ؅ཧ͢Δํ๏ • 1೔ʹ1ճ΄Ͳͷ഑৴ͷछྨ͕૿͑Δ • ഑৴λΠϛϯάͷ؅ཧ • ഑৴ίϯςϯπ • ΤϥʔϋϯυϦϯά

    (௨஌Ͱ͖ͨͷ͔ࣦഊͨ͠ͷ͔ݕ஌) ഑৴͢Δछྨ͕1छྨͰ͋Ε͹ಛʹ1ͭͷLambdaΛ࡞੒͠഑৴͍͚ͯ͠͹ྑ͍͕ɺ छྨ͕ଟ͘ͳΔͱ͞·͟·ͳ͜ͱʹߟྀ͢Δඞཁ͕͋Δ → Lambdaͷ؅ཧ͕ࠔ೉ʹͳͬͯ͘Δ (1഑৴1ؔ਺ͷ৔߹) → ഑৴λΠϛϯάΛ֬ೝ͠ʹ͍͘ͱೝࣝͷᴥᴪ͕ੜ·Ε΍͍͢ → ίϯςϯπͷࠩ͠ସ͑ʹ1,2೔͔͔Δ৔߹΍ࠓͲͷίϯςϯπΛ഑৴͍ͯ͠Δͷ͔֬ೝͮ͠Β͍ → Τϥʔݕ஌Ͱ͖Δج൫Λ੔͑Δඞཁ͕͋Δ
  36. 36 Ҏલͷ഑৴ΞʔΩςΫνϟ AWS Step Functions workflow AWS Lambda End Fail

    ҰͭͷLambdaؔ਺ʹStep FunctionsͷworkflowΛ࡞੒ࣦ͠ഊͷ৔߹͸ࣦഊͷࢫΛ௨஌ Lambdaؔ਺ͱStep Functionsͷworkflowͷ਺͕ൺྫͯ͠૿͍͑ͯ͘
  37. 37 ݱࡏͷ഑৴ΞʔΩςΫνϟ AWS Lambda Lambda͔ΒAmazon CloudWatch AlarmΛൃੜͰ͖ΔΑ͏ʹ AWS CloudFormation ͷςϯϓϨʔτΛ༻ҙؔ͠਺Λ࡞Δ͚ͩͰΤϥʔϋϯυϦϯάͰ͖Δ

    Amazon CloudWatch Alarm Fail AWS CloudFormation Template Amazon EventBridge
  38. 38 ίϯςϯπͷ؅ཧ • PinpointͷtemplateͰ؅ཧ • S3ͳͲʹίϯςϯπΛ഑ஔ͠؅ཧ PinpointͰίϯςϯπΛ؅ཧ͢Δํ๏ͱͯ͠ҎԼͷ2ύλʔϯ͋Γɺ֤ʑͷӡ༻໘Ͱܾఆ͢Δ

  39. 39 ίϯςϯπͷ؅ཧ • PinpointͷtemplateͰ؅ཧ • S3ͳͲʹίϯςϯπΛ഑ஔ͠؅ཧ PinpointͰίϯςϯπΛ؅ཧ͢Δํ๏ͱͯ͠ҎԼͷ2ύλʔϯ͋Γɺ֤ʑͷӡ༻໘Ͱܾఆ͢Δ → όʔδϣϯ؅ཧɺAWS Console͔Β΋௥ՃมߋՄೳ

    ɹίϯςϯπͱηάϝϯτΛผʑͰਐΊΔ৔߹ʹͦΕͧΕૄ݁߹ʹͳΔͷͰ؅ཧ͠΍͍͢ ɹൺֱత௚ײతʹ࡞੒Ͱ͖Δ͕ϦονͳίϯςϯπΛ࡞Γ͍ͨ৔߹͸html λάΛཧղ͢Δඞཁ͋Γ → ηάϝϯτ΋ίϯςϯπΛҰॹʹ؅ཧ͢ΔͰӨڹൣғ͕Θ͔Γ΍͍͢ ɹίϯςϯπΛ࡞੒ͷ೉қ౓͕templateΑΓߴ͍ (ίϯςϯπ࡞੒πʔϧ͕ͳ͍ͱҰ͔ΒhtmlΛॻ͘͜ͱʹ)
  40. 40 ίϯςϯπͷ؅ཧ ࢖༻ྫ • PinpointͷtemplateͰ؅ཧ • S3ͳͲʹίϯςϯπΛ഑ஔ͠؅ཧ PinpointͰίϯςϯπΛ؅ཧ͢Δํ๏ͱͯ͠ҎԼͷ2ύλʔϯ͋Γɺ֤ʑͷӡ༻໘Ͱܾఆ͢Δ → ձһొ࿥ɺܾࡁϝʔϧͳͲͷଈ࣌഑৴ͷ৔߹͸templateͱapplicationͷ੹຿Λ෼͚Δ͜ͱͰεϜʔζ

    → ΞϓϦέʔγϣϯͱ͸ผͰ഑৴Λίϯτʔϧ͢Δ৔߹ɺίϯςϯπ؅ཧ͸S3΋બ୒ࢶʹ
  41. ഑৴ͷޮՌݕূ

  42. 42 • ΩϟϯϖʔϯͷOpen rate΍Click rate [શମ] ഑৴ͷޮՌݕূΛਤΔͱ͖େ → খͷηάϝϯτ୯ҐͰଌΔ ഑৴ͷޮՌݕূ

    • A/Bςετ΍ϗʔϧυΞ΢τ [ൺֱ] • ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ]
  43. 43 • ΩϟϯϖʔϯͷOpen rate΍Click rate [શମ] ഑৴ͷޮՌݕূΛਤΔͱ͖େ → খͷηάϝϯτ୯ҐͰଌΔ ഑৴ͷޮՌݕূ

    • A/Bςετ΍ϗʔϧυΞ΢τ [ൺֱ] • ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ] → ҰൠతͳޮՌଌఆɻ։͍͍ͯͳ͍ίϯςϯπ͸͸ಡ·Εͯͳ͍͕ɺ։͍͍ͯΔίϯςϯπ͸ಡ·Ε͍ͯΔ → Ծઆʹର͢Δࢪࡦͷൺֱ͕ՄೳɻίϯςϯπΛมߋ͢Δͱ͖طଘͱޮՌΑΓޮՌ͕͋Δͷ͔ͳͲ →Open rateͳͲͰ͸ଌΕͳ͍ࢦඪͷޮՌΛଌఆɻOpen rate͸ߴ͘ͳ͍͕ച্্͕͕ΔͳͲ
  44. 44 • ΩϟϯϖʔϯͷOpen rate΍Click rate [શମ] ഑৴ͷޮՌݕূΛਤΔͱ͖େ → খͷηάϝϯτ୯ҐͰଌΔ ഑৴ͷޮՌݕূ

    • A/Bςετ΍ϗʔϧυΞ΢τ [ൺֱ] • ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ] → ҰൠతͳޮՌଌఆɻ։͍͍ͯͳ͍ίϯςϯπ͸͸ಡ·Εͯͳ͍͕ɺ։͍͍ͯΔίϯςϯπ͸ಡ·Ε͍ͯΔ → Ծઆʹର͢Δࢪࡦͷൺֱ͕ՄೳɻίϯςϯπΛมߋ͢Δͱ͖طଘͱޮՌΑΓޮՌ͕͋Δͷ͔ͳͲ →Open rateͳͲͰ͸ଌΕͳ͍ࢦඪͷޮՌΛଌఆɻOpen rate͸ߴ͘ͳ͍͕ച্্͕͕ΔͳͲ શମ
  45. 45 • ΩϟϯϖʔϯͷOpen rate΍Click rate [શମ] ഑৴ͷޮՌݕূΛਤΔͱ͖େ → খͷηάϝϯτ୯ҐͰଌΔ ഑৴ͷޮՌݕূ

    • A/Bςετ΍ϗʔϧυΞ΢τ [ൺֱ] • ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ] → ҰൠతͳޮՌଌఆɻ։͍͍ͯͳ͍ίϯςϯπ͸͸ಡ·Εͯͳ͍͕ɺ։͍͍ͯΔίϯςϯπ͸ಡ·Ε͍ͯΔ → Ծઆʹର͢Δࢪࡦͷൺֱ͕ՄೳɻίϯςϯπΛมߋ͢Δͱ͖طଘͱޮՌΑΓޮՌ͕͋Δͷ͔ͳͲ →Open rateͳͲͰ͸ଌΕͳ͍ࢦඪͷޮՌΛଌఆɻOpen rate͸ߴ͘ͳ͍͕ച্্͕͕ΔͳͲ શମ # $POUFOUT " $POUFOUT
  46. 46 • ΩϟϯϖʔϯͷOpen rate΍Click rate [શମ] ഑৴ͷޮՌݕূΛਤΔͱ͖େ → খͷηάϝϯτ୯ҐͰଌΔ ഑৴ͷޮՌݕূ

    • A/Bςετ΍ϗʔϧυΞ΢τ [ൺֱ] • ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ] → ҰൠతͳޮՌଌఆɻ։͍͍ͯͳ͍ίϯςϯπ͸͸ಡ·Εͯͳ͍͕ɺ։͍͍ͯΔίϯςϯπ͸ಡ·Ε͍ͯΔ → Ծઆʹର͢Δࢪࡦͷൺֱ͕ՄೳɻίϯςϯπΛมߋ͢Δͱ͖طଘͱޮՌΑΓޮՌ͕͋Δͷ͔ͳͲ →Open rateͳͲͰ͸ଌΕͳ͍ࢦඪͷޮՌΛଌఆɻOpen rate͸ߴ͘ͳ͍͕ച্্͕͕ΔͳͲ શମ # $POUFOUT " $POUFOUT ച্ ධՁ ϦΫΤετ ച্ ධՁ ϦΫΤετ ղ໿
  47. 47 ഑৴ͷޮՌݕূ • Ωϟϯϖʔϯͷશମ೺Ѳ Open rate΍Click rate, Bounce rate ͳͲͰશମΛ೺Ѳ͠

    ϢʔβʔผʹEmailΠϕϯτΛऔಘՄೳ Ωϟϯϖʔϯ໊ ૹ৴਺ ։෧཰ ΫϦοΫ཰ ό΢ϯε཰ $BNQBJHO@"      $BNQBJHO@#      $BNQBJHO@$      $BNQBJHO@%     
  48. 48 ഑৴ͷޮՌݕূ Amazon Pinpoint Amazon Kinesis Data Streams Amazon Simple

    Storage Service Amazon Athena AWS Lambda Amazon Simple Email 
 Service Users Users AWS Glue 
 Elastic Views 1ϢʔβʔผʹEmailΠϕϯτΛऔಘՄೳ (send, delivered, open, click, rejected, hardbounce, softbounce, complaint, rendering_failure)
  49. 49 ഑৴ͷޮՌݕূ A/Bςετ΍ϗʔϧυΞ΢τͷઃఆ΋Մೳ

  50. 50 ഑৴ͷޮՌݕূ A/Bςετ΍ϗʔϧυΞ΢τͷઃఆ΋Մೳ → A/Bςετ͸ ҎԼͷύλʔϯͰՄೳͳͷͰɺίϯςϯπͷྑ͠ѱ͠΍഑৴࣌ؒͷྑ͠ѱ͠Λ൑அՄೳ • ίϯςϯπͷA/B • ഑৴࣌ؒͷA/B

  51. 51 ഑৴ͷޮՌݕূ ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ] ࢥΘ͵ޮՌΛଌΕΔঢ়ଶ͸next actionΛߟ͑Δ্Ͱେࣄ • ഑৴ΩϟϯϖʔϯͱΞϓϦέʔγϣϯͷΠϕϯτΛඥ෇͚Δ • ଐੑσʔλ΋͋Δ৔߹͸ඥ͚ͮΔ

    • ྲྀೖݩ͸࢒͢લఏͰΠϕϯτઃܭ͢Δ
  52. 52 ഑৴ͷޮՌݕূ ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ] ࢥΘ͵ޮՌΛଌΕΔঢ়ଶ͸next actionΛߟ͑Δ্Ͱେࣄ • ഑৴ΩϟϯϖʔϯͱΞϓϦέʔγϣϯͷΠϕϯτΛඥ෇͚Δ • ଐੑσʔλ΋͋Δ৔߹͸ඥ͚ͮΔ

    • ྲྀೖݩ͸࢒͢લఏͰΠϕϯτઃܭ͢Δ → Πϕϯτ͕ͲͷΩϟϯϖʔϯܦ༝͔Θ͔ΔΑ͏ͳঢ়ଶ͢Δ → ػछɾ஍ҬੑͳͲ͋Δ৔߹͸σϑΥϧτͰ࢒͢ → ྲྀೖผͰޮՌ͕ҧ͏͜ͱ͸Α͋͘Δ͜ͱͳͷͰͦ͜ͰൺֱͰ͖Δঢ়ଶʹ͢Δ
  53. 53 ഑৴ͷޮՌݕূ ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ] ࢥΘ͵ޮՌΛଌΕΔঢ়ଶ͸next actionΛߟ͑Δ্Ͱେࣄ • ഑৴ΩϟϯϖʔϯͱΞϓϦέʔγϣϯͷΠϕϯτΛඥ෇͚Δ • ଐੑσʔλ΋͋Δ৔߹͸ඥ͚ͮΔ

    • ྲྀೖݩ͸࢒͢લఏͰΠϕϯτઃܭ͢Δ Content A Content B Content C େ খ த → Πϕϯτ͕ͲͷΩϟϯϖʔϯܦ༝͔Θ͔ΔΑ͏ͳঢ়ଶ͢Δ → ػछɾ஍ҬੑͳͲ͋Δ৔߹͸σϑΥϧτͰ࢒͢ → ྲྀೖผͰޮՌ͕ҧ͏͜ͱ͸Α͋͘Δ͜ͱͳͷͰͦ͜ͰൺֱͰ͖Δঢ়ଶʹ͢Δ
  54. 54 ഑৴ͷޮՌݕূ ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ] ࢥΘ͵ޮՌΛଌΕΔঢ়ଶ͸next actionΛߟ͑Δ্Ͱେࣄ • ഑৴ΩϟϯϖʔϯͱΞϓϦέʔγϣϯͷΠϕϯτΛඥ෇͚Δ • ଐੑσʔλ΋͋Δ৔߹͸ඥ͚ͮΔ

    • ྲྀೖݩ͸࢒͢લఏͰΠϕϯτઃܭ͢Δ → Πϕϯτ͕ͲͷΩϟϯϖʔϯܦ༝͔Θ͔ΔΑ͏ͳঢ়ଶ͢Δ → ػछɾ஍ҬੑͳͲ͋Δ৔߹͸σϑΥϧτͰ࢒͢ → ྲྀೖผͰޮՌ͕ҧ͏͜ͱ͸Α͋͘Δ͜ͱͳͷͰͦ͜ͰൺֱͰ͖Δঢ়ଶʹ͢Δ ͜ͷΠϕϯτʹͩ͜ΘΓ͗͢Δͱશମ૾͕ݟ͑ͳ͘ͳΓɺ χονͳࢪࡦΛ܁Γฦ͢৔߹͕͋ΔͷͰ஫ҙ͸ඞཁ͕ͩɺҙࣝͯ͠औΓ૊ΊΔͱྑ͍
  55. ඇΤϯδχΞͱͷؔΘΓํ

  56. 56 ඇΤϯδχΞ #J[%FW ͱͷؔΘΓํ • Ͱ͖ΔݶΓ৺ཧత҆શੑΛߴΊͨઃܭ΁ • σʔλ͔Βࢪࡦͷٯࢉ΁ • ௨஌ͯ͠ऴΘΓʹ͠ͳ͍

    ͲͷΑ͏ͳ഑৴͕Ϣʔβʔʹͱͬͯྑ͍ͷ͔఺Ͱଊ͑ͯઢͰ΋ݟΔ
  57. 57 ඇΤϯδχΞ #J[%FW ͱͷؔΘΓํ • Ͱ͖ΔݶΓ৺ཧత҆શੑΛߴΊͨઃܭ΁ • σʔλ͔Βࢪࡦͷٯࢉ΁ • ૹͬͯऴΘΓʹ͠ͳ͍

    ͲͷΑ͏ͳ഑৴͕Ϣʔβʔʹͱͬͯྑ͍ͷ͔఺Ͱଊ͑ͯઢͰ΋ݟΔ → ΤϯδχΞ͕ϑΥϩʔ͠ͳͯ͘΋Ͱ͖ΔΑ͏ʹ (ଐਓੑͷഉআ) → ҼࢠΛݟ͚ͭʮԿͱͳ͘ʯ͔Βʮ֬৴ʯ΁ม׵͍ͯ͘͠ → ୯ൃͰૹ৴ͨ͠΋ͷ͸୹ظతʹܭଌͰ͖Δ͕ɺܧଓ഑৴ͷ΋ͷ͸֬ೝ͠ͳ͘ͳΔ܏޲͕͋Δ
  58. ৺ཧత҆શੑΛߴΊͨઃܭ΁ • ഑৴಺༰ͷݱঢ়ͷ೺Ѳ • ίϯςϯπͷ੔ཧ • ηάϝϯτநग़΍σʔλϦςϥγʔ Ұͭͷ഑৴͔ΒશମΛ೺Ѳ͢Δͱ͖ʹۃྗෛ୲Λͳ͘͢ಈ͖͕ඞཁ ඞཁͳϒϥοΫϘοΫεԽͱෆཁͳϒϥοΫϘοΫεԽ

  59. ৺ཧత҆શੑΛߴΊͨઃܭ΁ • ഑৴಺༰ͷݱঢ়ͷ೺Ѳ • ίϯςϯπͷ੔ཧ • ηάϝϯτநग़΍σʔλϦςϥγʔ Ұͭͷ഑৴͔ΒશମΛ೺Ѳ͢Δͱ͖ʹۃྗෛ୲Λͳ͘͢ಈ͖͕ඞཁ ඞཁͳϒϥοΫϘοΫεԽͱෆཁͳϒϥοΫϘοΫεԽ →

    ഑৴಺༰ྔʹ૯ͯ͡ݱঢ়ͷ೺Ѳ͕ͮ͠Β͍ͷͰɺ഑৴ͷߟ͑ํͷ੔ཧ͓ͯ͘͠ → ্هʹ௨͡Δ෦෼΋͋Γ·͕͢ɺίϯςϯπࠩ͠ସ͑ͨͷʹมΘͬͯͳ͔ͬͨͳͲྑ͋͘Δ → ͍ΘΏΔSQLͷϨϕϧ΍σʔλϦςϥγʔ͸͋Δ͚ͩ෯͕޿͕ΔͷͰษڧձͳͲͰ ඇΤϯδχΞͷࢹ࠲Λ্͛Δ
  60. 60 σʔλ͔Βࢪࡦͷٯࢉ΁ શମ૾ ཁૉΛগ͠෼ղ͠৔߹ ྆ํͷάϥϑͱ΋ಉ͡ࢦඪΛ͋Δ෼ੳͷ΋ͱάϥϑԽͨ͠΋ͷͰ͋Γ ཁૉΛগ͠෼ղ͢Δͱ݁Ռ͸มΘͬͯ͘ΔͷͰɺૌٻͷ࢓ํ͕มΘͬͯ͘Δ εφοΫϛʔ͸ڞ௨ͷBIμογϡϘʔυ͔ΒωΫετΞΫγϣϯΩϝΔϝϯόʔ͕ଟ͍

  61. 61 σʔλ͔Βࢪࡦͷٯࢉ΁ σʔλΛ΋ͱʹҼՌ͕Θ͔Βͳ͍৔߹ʹA/BΛ࣮ࢪ͠ɺҼࢠΛಛఆ͍ͯ͘͠ ࠩ͸ͳͦ͞͏ ͕ࠩग़͍ͯΔ ૝ఆͱҧ͏ޮՌ

  62. 62 • A/BςετΛࢭΊͳ͍ • աڈ͔ΒݱࡏΛ೺Ѳ͢Δ • ഑৴ετοϓ΋ৗʹߟ͑Δ A/Bςετ͠ଓ͚Δ౔৕͸੔͍͑ͯ͘ ୯ൃͰૹ৴ͨ͠΋ͷ͸୹ظతʹܭଌͰ͖Δ͕ɺܧଓ഑৴ͷ΋ͷ͸֬ೝ͠ͳ͘ͳΔ܏޲͕͋Δ ૹͬͯऴΘΓʹ͠ͳ͍

  63. 63 • A/BςετΛࢭΊͳ͍ • աڈ͔ΒݱࡏΛ೺Ѳ͢Δ • ഑৴ετοϓ΋ৗʹߟ͑Δ A/Bςετ͠ଓ͚Δ౔৕͸੔͍͑ͯ͘ ୯ൃͰૹ৴ͨ͠΋ͷ͸୹ظతʹܭଌͰ͖Δ͕ɺܧଓ഑৴ͷ΋ͷ͸֬ೝ͠ͳ͘ͳΔ܏޲͕͋Δ ૹͬͯऴΘΓʹ͠ͳ͍

  64. 64 • A/BςετΛࢭΊͳ͍ • աڈ͔ΒݱࡏΛ೺Ѳ͢Δ • ഑৴ετοϓ΋ৗʹߟ͑Δ A/Bςετ͠ଓ͚Δ౔৕͸੔͍͑ͯ͘ ୯ൃͰૹ৴ͨ͠΋ͷ͸୹ظతʹܭଌͰ͖Δ͕ɺܧଓ഑৴ͷ΋ͷ͸֬ೝ͠ͳ͘ͳΔ܏޲͕͋Δ →

    ׂ߹͸௿ͯ͘΋഑৴ׂ߹Λ 100 : 0 ʹۃྗ͠ͳ͍ → ࢖͍ํ͸࣌୅΍αʔϏεల։ʹΑΓ࠷దͳํ๏͸มΘ͍ͬͯ͘ͷͰɺCRM͔ΒͰ΋ଌΔ → ࢪࡦͳͲߟ͍͑ͯ͘ͱ͖ɺجຊ +1 ͷ͜ͱΛߟ͕͕͑ͪͩ ஌Β͵ؒʹ1೔਺े௨ૹ͍ͬͯͨέʔε͕͋Δɻ ͦͷͨΊɺޮՌ͕ͳ͍΋ͷͳͲ͸഑৴ετοϓ͠࠷దͳ഑৴਺Λߟྀͯ͠ਐΊΔ ૹͬͯऴΘΓʹ͠ͳ͍
  65. Æ ·ͱΊ •Pinpoint͸෯޿͍νϟωϧʹରԠՄೳ (Ұݩ؅ཧ͠΍͍͢) •νʔϜʹ͋ͬͨ഑৴͢ΔͨΊͷઃܭΛߦ͏ •શମ͔Βઃܭ͠ηάϝϯτɺݸผ΁ͱల։Λߟ͑Δ •ܧଓతͳA/BςετΛߦ͏ •഑৴͸࡟আΛ೦಄ʹೖΕΔ

  66. 66 ϑϩϯτΤϯυΤϯδχΞ όοΫΤϯυΤϯδχΞ σʔλΤϯδχΞ 8FBSFIJSJOH ΤϯδχΞϦϯάϚωʔδϟʔ SRE etc. ৄ͘͠͸ͪ͜Β https://engineers.snaq.me/

  67. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠