Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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

hayato miyoshi
November 09, 2022

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

    View full-size slide

  2. 3
    ࣗݾ঺հ
    େֶଔۀޙݐஙઃܭࣄ຿ॴ΁ۈ຿ɻ


    ͦͷޙɺιϑτ΢ΣΞΤϯδχΞ΁ΩϟϦΞνΣϯδ͠ɺ2014೥ɺ
    geechsגࣜձࣾ΁ೖࣾɻٕज़ຊ෦ͷϦʔμʔͱͯ͠ϞόΠϧΞϓϦ
    ͷϓϩδΣΫτϚωʔδϟʔΛܦݧɻ


    2015೥ɺגࣜձࣾεφοΫϛʔΛ૑ۀҎޙɺ


    CTOͱͯ͠ΤϯδχΞϦϯάνʔϜΛ཰͍͍ͯΔɻ
    CTO & co-founder


    ࡾ޷ ൏ਓ @miyoshihayato

    View full-size slide

  3. ͓΍ͭͷఆظศ


    1,880ԁ (੫ࠐɾૹྉ330ԁ)
    ௚Ӧళ (ਗ਼੅നՏ)


    https://kiyosumi.snaq.me/
    ϓϩςΠϯόʔ


    5ຊೖ 1,525ԁ(੫ࠐɾૹྉ330ԁ)


    10ຊೖ 2,925ԁʢ੫ࠐɾૹྉ330ԁʣ
    άουδϟʔΩʔ


    3ା 1,850ԁ(੫ࠐɾૹྉ330ԁ)
    ࣄۀ಺༰

    View full-size slide

  4. σʔλΛ׆͔ͨ͠঎඼։ൃ
    ʰ͓΍ͭମݧʱ
    ఆظศ͓ಧ͚ස౓


    • ̎िؒʹ̍ճ


    • ̐िؒʹ̍ճ
    • ͓΍ͭ΁ͷϑΟʔυόοΫ


    • ϦΫΤετ


    • ޷͖ݏ͍ͷొ࿥
    • ͓ಧ͚ΛॏͶΔ͝ͱʹ
    ΑΓ޷Έʹۙͮ͘BOX


    • BOXΛ։෧͢Δ࣌ͷɹ
    Θ͘Θ͘ײ
    • σʔλ෼ੳ


    • ঎඼։ൃ


    • ύʔιφϥΠζ


    ͞Ε͓ͨ΍ͭͷબఆ
    Ϣʔβʔ͔Βͷ


    ධՁσʔλΛ׆͔͠ɺ


    1ϲ݄΄ͲͰ৽঎඼ͷ


    اը։ൃ͕Մೳ
    ঎඼։ൃαΠΫϧ

    View full-size slide

  5. 6
    ͓΋͠Ζ͍ʂ
    ࣦഊΛڪΕͣʹνϟϨϯδ͢Δ͜ͱΛ঑ྭ͢ΔจԽ
    ΍ͬͯΈΑʂ
    ͭ͗ʹ͍͔ͦ͏ʂ
    ೉қ౓΍޻਺͡Όͳ͘ʮͦΕͬͯ໘ന͍ʁʯΛ࣠ʹɺ

    ”ϫΫϫΫϑΝʔετ”Ͱߦಈ͠·͢ɻ

    ͓΋͠Ζ͍΄͏͕΍Δؾ͕ग़Δ͠ɺ͓٬༷ʹتΜͰ͍͚ͨͩΔ͔Βɻ
    ͪ͝Όͪ͝Όݴͬͯͳ͍Ͱ”Φʔφʔγοϓ”Λ࣋ͬͯ·ͣ΍ͬͯΈΑ͏


    ࣦഊ͍͍ͨͬͯ͠ɻֶͼ͕͋Ε͹Ṷ͚΋ͷɻ

    ࣦഊΛڪΕͣͲΜͲΜ”νϟϨϯδ”͍͖ͯ͠·͠ΐ͏ɻ

    ΈΜͳ΍͍͔͞͠Βࣦഊͨͬͯ͠େৎ෉ͩΑʂ
    εφοΫϛʔͰಇ͘ਓͨͪͷՁ஋؍

    View full-size slide

  6. 7
    ༷ʑͳϝϯόʔ͕ଘࡏ͠εφοΫϛʔΛ૑͍ͬͯΔ


    ɾ஥ؒΛϦεϖΫτ͠ɺڞʹՁ஋Λ૑଄ग़དྷ͍ͯΔ͔ʁ


    ɾརଞతͳߦಈ͕Ͱ͖͍ͯΔ͔ʁ
    εφοΫϛʔͷ૊৫෩౔
    νʔϜεφοΫϛʔ
    ͓΋͠Ζ͍ʂ ΍ͬͯΈΑʂ ͭ͗ʹ͍͔ͦ͏ʂ
    ͓΍ͭͱ͸ผʹεφοΫϛʔͷ૊৫෩౔

    View full-size slide

  7. SNAQ
    Scale Out
    ΤϯδχΞϦϯάͰࣄۀ੒௕ΛҾͬ
    ு͍͚ͬͯΔΑ͏ͳ։ൃΛ͍ͯ͜͠
    ͏ɻͦͷҝʹ΋εέʔϧ͠΍͍͢࢓
    ૊Έͷ։ൃΛ৺͕͚Α͏ɻ
    Next
    ೔ʑͷ௅ઓͷதͰࣦഊΛͯ͠͠·ͬͨ࣌ʹ
    Ͱ΋ɺ࣍΁ͷҰา͕౿Έग़͠΍͍͢࢓૊Έ
    ͮ͘ΓΛ৺͕͚Α͏ɻյ͠΍͍͢࢓૊Έͩ
    ͬͨΓɺ࠷଎Ͱ։ൃɾվળ͍͚ͯ͠ΔΑ͏
    ͳ؀ڥΛ࣋ͪଓ͚Α͏ɻ
    Agile
    খ͘͞ૣ͘εϐʔυײΛ࣋ͬͯɺ


    ܧଓతʹվળΛੵΈॏͶ͍ͯ͜͏ɻ
    Quality
    Ϣʔβʔʹͱͬͯ


    Ұ൪ྑ͍΋ͷΛ࡞͍ͬͯ͜͏ɻ
    ΤϯδχΞνʔϜͷόϦϡʔ

    View full-size slide

  8. CRM
    Customer Relationship Management

    View full-size slide

  9. 10
    $3.ͱฉ͍ͯ
    •ސ٬Λ؅ཧ͢Δ


    •ސ٬ͱͷؔ܎ੑΛҡ࣋΍޲্ͤ͞Δ


    •Ωϟϯϖʔϯ؅ཧ


    •ސ٬Λ෼ੳ͢Δ


    •ސ٬ੜ֔Ձ஋ʢLTVʣͷ޲্


    ͳͲ

    View full-size slide

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


    ͱ


    Ξ΢τόϯυ


    ରԠ
    શϢʔβʔͰ͸ͳ͘


    Use caseʹ߹Θͤͯ


    ͦΕͧΕͷνϟωϧͰ௨஌
    LINE
    ͦͷଞ SNSͳͲ ×

    View full-size slide

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


    ͱ


    Ξ΢τόϯυ


    ରԠ
    શϢʔβʔͰ͸ͳ͘


    Use caseʹ߹Θͤͯ


    ͦΕͧΕͷνϟωϧͰ௨஌
    LINE
    ͦͷଞ SNSͳͲ ×

    View full-size slide

  12. ໨࣍
    •ϝʔϧ΍LINE(ΧελϜνϟωϧ)ͷํ๏


    •୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ


    •഑৴Λ؅ཧ͢Δํ๏


    •഑৴ͷޮՌݕূ


    •ඇΤϯδχΞͱͷؔΘΓํ

    View full-size slide

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

    View full-size slide

  14. 15
    "NB[PO1JOQPJOUʹ͍ͭͯ
    •Email


    •SMS


    •ϓογϡ௨஌ͳͲ
    ଟ༷ͳνϟωϧ
    ϚʔέςΟϯάϝοηʔδ
    •ର৅ऀηάϝϯςʔγϣϯ


    •ςϯϓϨʔτ / ύʔιφϥΠζ


    •Ωϟϯϖʔϯ / δϟʔχʔ
    ෼ੳ
    •ϑΝωϧ


    •ϝʔϧͷOpen rate, Click rate

    View full-size slide

  15. 16
    ϝʔϧͷઃఆ
    1. ϓϩδΣΫτͷ࡞੒


    2. Emailͷઃఆ


    3. ೝূ

    View full-size slide

  16. 17
    ΧελϜνϟωϧͷ࡞Γํ
    1. AWS LambdaͰ௨஌͢Δؔ਺ͷ࡞੒


    2. Lambdaؔ਺Λݺͼग़ͨ͢ΊͷAmazon PinpointΞΫηεڐՄΛ෇༩͢Δ


    3. PinpointͰ௨஌͢Δͱ͖ʹΧελϜνϟωϧܦ༝Ͱૹ৴͢ΔΩϟϯϖʔϯ࡞੒

    View full-size slide

  17. 18
    "84-BNCEBͰ௨஌͢Δؔ਺ͷ࡞੒
    • ΧελϜνϟωϧ͸ ૹ৴෦෼ΛશͯࣗࣾͰ؅ཧ


    • ૹ৴ઌͷ؀ڥߏங (ΞΫηεΩʔ΍֎෦SDKͳͲ)


    • ड͚औΔσʔλ (jsonͰ஋Λऔಘ)


    • ϝοηʔδΛಈతʹมߋ͢Δॲཧ (໊લͳͲ)
    AWS Lambda
    Amazon Pinpoint AWS Lambda
    AWS Lambda
    AWS Lambda
    Aνϟωϧ
    Bνϟωϧ
    Cνϟωϧ

    View full-size slide

  18. 19
    "84-BNCEBͰ௨஌͢Δؔ਺ͷ࡞੒ ड͚औΔσʔλ

    • ApplicationId – Ωϟϯϖʔϯ͕ଐ͢Δ Amazon Pinpoint ϓϩδΣΫτͷ IDɻ
    ࠷େ50ͷΤϯυϙΠϯτʹϝοηʔδΛ഑৴Ͱ͖Δ
    • ActivityId – ΩϟϯϖʔϯʹΑ࣮ͬͯߦதͷΞΫςΟϏςΟͷ IDɻ
    • CampaignId – Lambda ؔ਺Λݺͼग़ͨ͠ Amazon Pinpoint Ωϟϯϖʔϯͷ IDɻ
    • Data – ΧελϜνϟϯωϧʹૹ৴͢ΔϝοηʔδϖΠϩʔυΛؚΉ JSON จࣈྻɻ
    • Endpoints – ΩϟϯϖʔϯͷλʔήοτͱͳͬͨΤϯυϙΠϯτͷϦετɻ֤ϖΠϩʔυʹ͸ɺ࠷େ 50 ͷΤ
    ϯυϙΠϯτΛؚΊΔ͜ͱ͕Ͱ͖·͢ɻΩϟϯϖʔϯͷૹ৴ઌηάϝϯτʹ 50 Ҏ্ͷΤϯυϙΠϯτؚ͕·
    Ε͍ͯΔ৔߹ɺAmazon Pinpoint ͸͢΂ͯͷΤϯυϙΠϯτ͕ॲཧ͞ΕΔ·Ͱɺ܁Γฦؔ͠਺Λݺͼग़͠·͢
    (࠷େͰҰ౓ʹ 50 ͷΤϯυϙΠϯτ)ɻ

    View full-size slide

  19. 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͕ىಈ͠ͳ͍έʔε͕͋ΔͷͰ஫ҙ

    View full-size slide

  20. 21
    ΧελϜνϟωϧܦ༝Ͱૹ৴͢ΔΩϟϯϖʔϯ࡞੒
    νϟωϧͰΧελϜΛબ୒ ഑৴͢Δؔ਺Λબ୒

    View full-size slide

  21. 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

    View full-size slide

  22. ഑৴ํ๏͸ͳΜͱͳ͘೺ѲͰ͖ͨ


    ҰํͰ഑৴͢ΔͨΊͷߟ͑ํ͸Ͳ͏͢Δ͔
    େ͖͘෼͚Δͱ


    ୯ൃ഑৴ͱܧଓ഑৴ʹ෼͚ΒΕΔ

    View full-size slide

  23. ഑৴ํ๏͸ͳΜͱͳ͘೺ѲͰ͖ͨ


    ҰํͰ഑৴͢ΔͨΊͷߟ͑ํ͸Ͳ͏͢Δ͔
    େ͖͘෼͚Δͱ


    ୯ൃ഑৴ͱܧଓ഑৴ʹ෼͚ΒΕΔ
    ୯ൃ഑৴ : 1౓͖Γͷ഑৴ / ಉ͡Ͱ΋ຖճίϯςϯπ͕େ͖͘ҟͳΔ


    (Ex. اըͷॳ௨஌ɺαʔϏεͷप೥ࡇ௨஌ͳͲ)


    ܧଓ഑৴ : ܧଓతʹ഑৴͢Δ


    (Ex. ຖिͷ৽঎඼௨஌ɺॳճొ࿥ͷΦϯϘʔσΟϯά௨஌ͳͲ)

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  26. 27
    ୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ
    ୯ൃ഑৴
    ςετΛ܁Γฦ͢
    ݁Ռ͕ग़ͨ৔߹


    ܧଓ΁Ҡߦ
    ݁Ռ͕ग़ͳ͍৔߹


    ͦͷ഑৴ࣗମετοϓ
    ੒Ռ͕ग़Δ഑৴Λ


    ߟ͑Δ

    View full-size slide

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


    ܧଓ΁Ҡߦ
    ୯ൃ഑৴
    ݁Ռ͕ग़ͳ͍৔߹


    ͦͷ഑৴ࣗମετοϓ
    ੒Ռ͕ग़Δ഑৴Λ


    ߟ͑Δ

    View full-size slide

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


    ܧଓ΁Ҡߦ
    ୯ൃ഑৴
    ݁Ռ͕ग़ͳ͍৔߹


    ͦͷ഑৴ࣗମετοϓ
    ੒Ռ͕ग़Δ഑৴Λ


    ߟ͑Δ
    A/Bςετ
    ίϯςϯπͳͲͷ


    ςετ࣮ࢪ

    View full-size slide

  29. 30
    ୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ
    ୯ൃ഑৴ ܧଓ഑৴
    ୯ൃ഑৴
    ςετΛ܁Γฦ͢
    ݁Ռ͕ग़ͨ৔߹


    ܧଓ΁Ҡߦ
    ܧଓ഑৴
    ܧଓ഑৴
    ୯ൃ഑৴
    ݁Ռ͕ग़ͳ͍৔߹


    ͦͷ഑৴ࣗମετοϓ
    ੒Ռ͕ग़Δ഑৴Λ


    ߟ͑Δ
    A/Bςετ
    ίϯςϯπͳͲͷ


    ςετ࣮ࢪ

    View full-size slide

  30. 31
    ୯ൃ഑৴ͱܧଓ഑৴ͷߟ͑ํ
    ܧଓ഑৴
    ୯ൃ഑৴
    खಈͰ഑৴͍ͯ͘͜͠ͱ͸ݶք͕͋Γ


    ࣗಈͰૹ৴͢ΔྔΛ҆ఆతʹ͢Δ͜ͱͰ


    ϢʔβʔମݧΛগͣͭ͠޲্ͤ͞Δ͜ͱ͕Ͱ͖Δ


    ඞཁͳ௨஌͸ૣΊʹܧଓ഑৴ʹγϑτ͠


    ޮՌ͕ྑ͘ͳ͍഑৴͸ഇࢭ͢Δ

    View full-size slide

  31. ഑৴Λ؅ཧ͢Δํ๏

    View full-size slide

  32. 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Ͱͷ഑৴ ࣾ಺؅ཧը໘͔Β഑৴

    View full-size slide

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


    छྨ͕ଟ͘ͳΔͱ͞·͟·ͳ͜ͱʹߟྀ͢Δඞཁ͕͋Δ

    View full-size slide

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


    छྨ͕ଟ͘ͳΔͱ͞·͟·ͳ͜ͱʹߟྀ͢Δඞཁ͕͋Δ
    → Lambdaͷ؅ཧ͕ࠔ೉ʹͳͬͯ͘Δ (1഑৴1ؔ਺ͷ৔߹)
    → ഑৴λΠϛϯάΛ֬ೝ͠ʹ͍͘ͱೝࣝͷᴥᴪ͕ੜ·Ε΍͍͢
    → ίϯςϯπͷࠩ͠ସ͑ʹ1,2೔͔͔Δ৔߹΍ࠓͲͷίϯςϯπΛ഑৴͍ͯ͠Δͷ͔֬ೝͮ͠Β͍
    → Τϥʔݕ஌Ͱ͖Δج൫Λ੔͑Δඞཁ͕͋Δ

    View full-size slide

  35. 36
    Ҏલͷ഑৴ΞʔΩςΫνϟ
    AWS Step Functions workflow
    AWS Lambda
    End
    Fail
    ҰͭͷLambdaؔ਺ʹStep FunctionsͷworkflowΛ࡞੒ࣦ͠ഊͷ৔߹͸ࣦഊͷࢫΛ௨஌


    Lambdaؔ਺ͱStep Functionsͷworkflowͷ਺͕ൺྫͯ͠૿͍͑ͯ͘

    View full-size slide

  36. 37
    ݱࡏͷ഑৴ΞʔΩςΫνϟ
    AWS Lambda
    Lambda͔ΒAmazon CloudWatch AlarmΛൃੜͰ͖ΔΑ͏ʹ


    AWS CloudFormation ͷςϯϓϨʔτΛ༻ҙؔ͠਺Λ࡞Δ͚ͩͰΤϥʔϋϯυϦϯάͰ͖Δ
    Amazon CloudWatch


    Alarm
    Fail
    AWS CloudFormation


    Template
    Amazon EventBridge

    View full-size slide

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

    View full-size slide

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


    ɹίϯςϯπͱηάϝϯτΛผʑͰਐΊΔ৔߹ʹͦΕͧΕૄ݁߹ʹͳΔͷͰ؅ཧ͠΍͍͢


    ɹൺֱత௚ײతʹ࡞੒Ͱ͖Δ͕ϦονͳίϯςϯπΛ࡞Γ͍ͨ৔߹͸html λάΛཧղ͢Δඞཁ͋Γ
    → ηάϝϯτ΋ίϯςϯπΛҰॹʹ؅ཧ͢ΔͰӨڹൣғ͕Θ͔Γ΍͍͢


    ɹίϯςϯπΛ࡞੒ͷ೉қ౓͕templateΑΓߴ͍ (ίϯςϯπ࡞੒πʔϧ͕ͳ͍ͱҰ͔ΒhtmlΛॻ͘͜ͱʹ)

    View full-size slide

  39. 40
    ίϯςϯπͷ؅ཧ ࢖༻ྫ

    • PinpointͷtemplateͰ؅ཧ
    • S3ͳͲʹίϯςϯπΛ഑ஔ͠؅ཧ
    PinpointͰίϯςϯπΛ؅ཧ͢Δํ๏ͱͯ͠ҎԼͷ2ύλʔϯ͋Γɺ֤ʑͷӡ༻໘Ͱܾఆ͢Δ
    → ձһొ࿥ɺܾࡁϝʔϧͳͲͷଈ࣌഑৴ͷ৔߹͸templateͱapplicationͷ੹຿Λ෼͚Δ͜ͱͰεϜʔζ
    → ΞϓϦέʔγϣϯͱ͸ผͰ഑৴Λίϯτʔϧ͢Δ৔߹ɺίϯςϯπ؅ཧ͸S3΋બ୒ࢶʹ

    View full-size slide

  40. ഑৴ͷޮՌݕূ

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  46. 47
    ഑৴ͷޮՌݕূ
    • Ωϟϯϖʔϯͷશମ೺Ѳ
    Open rate΍Click rate, Bounce rate ͳͲͰશମΛ೺Ѳ͠


    ϢʔβʔผʹEmailΠϕϯτΛऔಘՄೳ
    Ωϟϯϖʔϯ໊ ૹ৴਺ ։෧཰ ΫϦοΫ཰ ό΢ϯε཰
    $BNQBJHO@"
    $BNQBJHO@#
    $BNQBJHO@$
    $BNQBJHO@%

    View full-size slide

  47. 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)

    View full-size slide

  48. 49
    ഑৴ͷޮՌݕূ
    A/Bςετ΍ϗʔϧυΞ΢τͷઃఆ΋Մೳ

    View full-size slide

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


    • ഑৴࣌ؒͷA/B

    View full-size slide

  50. 51
    ഑৴ͷޮՌݕূ
    ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ]


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

    View full-size slide

  51. 52
    ഑৴ͷޮՌݕূ
    ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ]


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

    View full-size slide

  52. 53
    ഑৴ͷޮՌݕূ
    ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ]


    ࢥΘ͵ޮՌΛଌΕΔঢ়ଶ͸next actionΛߟ͑Δ্Ͱେࣄ
    • ഑৴ΩϟϯϖʔϯͱΞϓϦέʔγϣϯͷΠϕϯτΛඥ෇͚Δ
    • ଐੑσʔλ΋͋Δ৔߹͸ඥ͚ͮΔ
    • ྲྀೖݩ͸࢒͢લఏͰΠϕϯτઃܭ͢Δ
    Content A
    Content B
    Content C



    → Πϕϯτ͕ͲͷΩϟϯϖʔϯܦ༝͔Θ͔ΔΑ͏ͳঢ়ଶ͢Δ
    → ػछɾ஍ҬੑͳͲ͋Δ৔߹͸σϑΥϧτͰ࢒͢
    → ྲྀೖผͰޮՌ͕ҧ͏͜ͱ͸Α͋͘Δ͜ͱͳͷͰͦ͜ͰൺֱͰ͖Δঢ়ଶʹ͢Δ

    View full-size slide

  53. 54
    ഑৴ͷޮՌݕূ
    ഑৴ޙͷΞϓϦέʔγϣϯ಺ͷΠϕϯτ [۩ମతͳޮՌ]


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


    χονͳࢪࡦΛ܁Γฦ͢৔߹͕͋ΔͷͰ஫ҙ͸ඞཁ͕ͩɺҙࣝͯ͠औΓ૊ΊΔͱྑ͍

    View full-size slide

  54. ඇΤϯδχΞͱͷؔΘΓํ

    View full-size slide

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

    View full-size slide

  56. 57
    ඇΤϯδχΞ #J[%FW
    ͱͷؔΘΓํ
    • Ͱ͖ΔݶΓ৺ཧత҆શੑΛߴΊͨઃܭ΁
    • σʔλ͔Βࢪࡦͷٯࢉ΁
    • ૹͬͯऴΘΓʹ͠ͳ͍
    ͲͷΑ͏ͳ഑৴͕Ϣʔβʔʹͱͬͯྑ͍ͷ͔఺Ͱଊ͑ͯઢͰ΋ݟΔ
    → ΤϯδχΞ͕ϑΥϩʔ͠ͳͯ͘΋Ͱ͖ΔΑ͏ʹ (ଐਓੑͷഉআ)
    → ҼࢠΛݟ͚ͭʮԿͱͳ͘ʯ͔Βʮ֬৴ʯ΁ม׵͍ͯ͘͠
    → ୯ൃͰૹ৴ͨ͠΋ͷ͸୹ظతʹܭଌͰ͖Δ͕ɺܧଓ഑৴ͷ΋ͷ͸֬ೝ͠ͳ͘ͳΔ܏޲͕͋Δ

    View full-size slide

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


    ඞཁͳϒϥοΫϘοΫεԽͱෆཁͳϒϥοΫϘοΫεԽ

    View full-size slide

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


    ඞཁͳϒϥοΫϘοΫεԽͱෆཁͳϒϥοΫϘοΫεԽ
    → ഑৴಺༰ྔʹ૯ͯ͡ݱঢ়ͷ೺Ѳ͕ͮ͠Β͍ͷͰɺ഑৴ͷߟ͑ํͷ੔ཧ͓ͯ͘͠
    → ্هʹ௨͡Δ෦෼΋͋Γ·͕͢ɺίϯςϯπࠩ͠ସ͑ͨͷʹมΘͬͯͳ͔ͬͨͳͲྑ͋͘Δ
    → ͍ΘΏΔSQLͷϨϕϧ΍σʔλϦςϥγʔ͸͋Δ͚ͩ෯͕޿͕ΔͷͰษڧձͳͲͰ


    ඇΤϯδχΞͷࢹ࠲Λ্͛Δ

    View full-size slide

  59. 60
    σʔλ͔Βࢪࡦͷٯࢉ΁
    શମ૾ ཁૉΛগ͠෼ղ͠৔߹
    ྆ํͷάϥϑͱ΋ಉ͡ࢦඪΛ͋Δ෼ੳͷ΋ͱάϥϑԽͨ͠΋ͷͰ͋Γ


    ཁૉΛগ͠෼ղ͢Δͱ݁Ռ͸มΘͬͯ͘ΔͷͰɺૌٻͷ࢓ํ͕มΘͬͯ͘Δ
    εφοΫϛʔ͸ڞ௨ͷBIμογϡϘʔυ͔ΒωΫετΞΫγϣϯΩϝΔϝϯόʔ͕ଟ͍

    View full-size slide

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

    View full-size slide

  61. 62
    • A/BςετΛࢭΊͳ͍
    • աڈ͔ΒݱࡏΛ೺Ѳ͢Δ
    • ഑৴ετοϓ΋ৗʹߟ͑Δ
    A/Bςετ͠ଓ͚Δ౔৕͸੔͍͑ͯ͘


    ୯ൃͰૹ৴ͨ͠΋ͷ͸୹ظతʹܭଌͰ͖Δ͕ɺܧଓ഑৴ͷ΋ͷ͸֬ೝ͠ͳ͘ͳΔ܏޲͕͋Δ
    ૹͬͯऴΘΓʹ͠ͳ͍

    View full-size slide

  62. 63
    • A/BςετΛࢭΊͳ͍
    • աڈ͔ΒݱࡏΛ೺Ѳ͢Δ
    • ഑৴ετοϓ΋ৗʹߟ͑Δ
    A/Bςετ͠ଓ͚Δ౔৕͸੔͍͑ͯ͘


    ୯ൃͰૹ৴ͨ͠΋ͷ͸୹ظతʹܭଌͰ͖Δ͕ɺܧଓ഑৴ͷ΋ͷ͸֬ೝ͠ͳ͘ͳΔ܏޲͕͋Δ
    ૹͬͯऴΘΓʹ͠ͳ͍

    View full-size slide

  63. 64
    • A/BςετΛࢭΊͳ͍
    • աڈ͔ΒݱࡏΛ೺Ѳ͢Δ
    • ഑৴ετοϓ΋ৗʹߟ͑Δ
    A/Bςετ͠ଓ͚Δ౔৕͸੔͍͑ͯ͘


    ୯ൃͰૹ৴ͨ͠΋ͷ͸୹ظతʹܭଌͰ͖Δ͕ɺܧଓ഑৴ͷ΋ͷ͸֬ೝ͠ͳ͘ͳΔ܏޲͕͋Δ
    → ׂ߹͸௿ͯ͘΋഑৴ׂ߹Λ 100 : 0 ʹۃྗ͠ͳ͍
    → ࢖͍ํ͸࣌୅΍αʔϏεల։ʹΑΓ࠷దͳํ๏͸มΘ͍ͬͯ͘ͷͰɺCRM͔ΒͰ΋ଌΔ
    → ࢪࡦͳͲߟ͍͑ͯ͘ͱ͖ɺجຊ +1 ͷ͜ͱΛߟ͕͕͑ͪͩ ஌Β͵ؒʹ1೔਺े௨ૹ͍ͬͯͨέʔε͕͋Δɻ


    ͦͷͨΊɺޮՌ͕ͳ͍΋ͷͳͲ͸഑৴ετοϓ͠࠷దͳ഑৴਺Λߟྀͯ͠ਐΊΔ
    ૹͬͯऴΘΓʹ͠ͳ͍

    View full-size slide

  64. Æ
    ·ͱΊ
    •Pinpoint͸෯޿͍νϟωϧʹରԠՄೳ (Ұݩ؅ཧ͠΍͍͢)


    •νʔϜʹ͋ͬͨ഑৴͢ΔͨΊͷઃܭΛߦ͏


    •શମ͔Βઃܭ͠ηάϝϯτɺݸผ΁ͱల։Λߟ͑Δ


    •ܧଓతͳA/BςετΛߦ͏


    •഑৴͸࡟আΛ೦಄ʹೖΕΔ

    View full-size slide

  65. 66
    ϑϩϯτΤϯυΤϯδχΞ


    όοΫΤϯυΤϯδχΞ


    σʔλΤϯδχΞ
    8FBSFIJSJOH
    ΤϯδχΞϦϯάϚωʔδϟʔ


    SRE


    etc.
    ৄ͘͠͸ͪ͜Β https://engineers.snaq.me/

    View full-size slide

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

    View full-size slide