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

User State Driven System with Amazon EventBridge & KARTE

tik-son
October 28, 2020

User State Driven System with Amazon EventBridge & KARTE

”ビジネスにアジリティーをもたらす「SaaS + サーバーレス」” でお話した、Amazon EventBridge & KARTE を活用して作るUser State Driven Systemについて
https://pages.awscloud.com/SaaS_Svrless_EventBridge_seminar.html

tik-son

October 28, 2020
Tweet

More Decks by tik-son

Other Decks in Technology

Transcript

  1. 1
    User State Driven System
    with Amazon EventBridge & KARTE
    Naohiko Takemura / PLAID, Inc / Head of engineering
    ɹɹʛɹɹ© PLAID Inc. 2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ

    View full-size slide

  2. 2
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    ஛ଜ ঘ඙ גࣜձࣾϓϨΠυ
    Head of Engineering Backend / Infra
    2014೥11݄ೖࣾ BlackMusic ि຤ΪλϦετ Թઘ
    BizDev with CloudProvider
    github : tik-son
    10
    twitter : tikson
    ࣗݾ঺հ

    View full-size slide

  3. 3
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    גࣜձࣾϓϨΠυʹ͍ͭͯ
    גࣜձࣾϓϨΠυ
    ౦ژ౎தԝ۠ۜ࠲6-10-1 GINZA SIX 10F
    ઃཱɿ2011೥10݄
    ैۀһɿ210໊
    ※2020೥4݄1೔ ࣌఺
    3

    View full-size slide

  4. 4
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    Event Driven System ʁ
    Event Driven System

    View full-size slide

  5. 5
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    Event Driven System
    • ΠϕϯτۦಈܕΞʔΩςΫνϟʢEDAʣ͸ɺΠϕϯτͷੜ੒ɺݕग़ɺফඅɺ͓ΑͼΠϕϯτ΁ͷରԠΛଅਐ͢Δ
    ιϑτ΢ΣΞΞʔΩςΫνϟύϥμΠϜͰ͢ɻ
    • Πϕϯτ͸ʮঢ়ଶͷେ෯ͳมԽ ( a significant change in state)ʯͱͯ͠ఆٛͰ͖·͢ɻͨͱ͑͹ɺফඅऀ͕ं
    Λߪೖ͢Δͱɺंͷঢ়ଶ͕ʮൢചதʯ͔ΒʮൢചࡁΈʯʹมΘΓ·͢ɻ ࣗಈंσΟʔϥʔͷγεςϜΞʔΩς
    Ϋνϟ͸ɺ͜ͷঢ়ଶͷมԽΛɺΞʔΩςΫνϟ಺ͷଞͷΞϓϦέʔγϣϯʹͦͷൃੜΛ஌ΒͤΔ͜ͱ͕Ͱ͖ΔΠ
    ϕϯτͱͯ͠ѻ͏৔߹͕͋Γ·͢ɻ
    https://en.wikipedia.org/wiki/Event-driven_architecture with Google Translate
    Event Driven System

    View full-size slide

  6. 6
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    • γϯϓϧͳEvent Driven System Ͱ͋Ε͹ɺAWSͷαʔϏεͷ૊Έ߹ΘͤͰ؆୯ʹ࣮ݱͰ͖Δ
    https://aws.amazon.com/jp/lambda/
    Event Driven System

    View full-size slide

  7. 7
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    User State Driven System ʁ
    User State Driven System

    View full-size slide

  8. 8
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    User State Driven System
    • ਓͷঢ়ଶ( User State ) ͷมԽΛτϦΨʔʹۦಈ
    • ༷ʑͳγεςϜ͕ଘࡏ͢Δ͕ɺ࠷ऴతͳϦΞΫγϣϯઌͱͯ͠͸ਓͰ͋Δ͜ͱ͕ଟ͍
    • ਓʹରͯ͠ɺద੾ʹϦΞΫγϣϯ͕Ͱ͖Ε͹Ϣʔβମݧ͕޲্͠ɺγεςϜͷ໨తΛୡ੒͠΍͘͢ͳΔ͸ͣ
    • ਓʹରͯ͠ɺద੾ͳϦΞΫγϣϯΛ͢ΔͨΊʹ͸ɺ ݱ࣮ੈքͱಉ͡ͰUser StateͷมԽΛϦΞϧλΠϜʹଊ͑Δ
    ͜ͱ͕ॏཁ
    • σʔλ͕ଟ͚Ε͹ଟ͍΄ͲUser Stateͷղ૾౓͸্͕Δ͕ɺγεςϜͷཁ݅͸ʁ
    • େྔͷσʔλΛऩू͢ΔΠϯϑϥ
    • େྔͷσʔλʹରͯ͠աڈͷߦಈ͔Βͷ༷ʑͳมԽΛϦΞϧλΠϜʹղੳ͢ΔղੳΤϯδϯ
    • ࣮ݱํ๏ʁ ࣗલͰ࣮ݱ͢ΔίετύϑΥʔϚϯε͸ʁ
    User State Driven System

    View full-size slide

  9. 9
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    ֬ೝ͢Δ
    جຊαʔϏε΍͝ར༻ํ๏Λ͝঺հ͠·͢ɻ
    ͓ಘͳಛయ΍໾ཱͭ৘ใ͕ຬࡌͰ͢ɻ
    ॳΊͯͷํ΁
    ְתּׅ然钠ׅ׷
    6*رؠ؎ش٦׌ֽוזַזַ♳麦׃זְծ➙
    ״׶إٔؗ،حف׃׋ְהְֲ倯䗳铣דׅկ
    UIرؠ؎ش٦ָ濼׏גֶֻץֹ
    7אךرؠ؎ٕٝ٦ٕ
    DESIGN
    RULES
    » CHECK
    ׆׏ה⢪ִ׷،؎ذي׌ֽ׾䲧ִת׃׋կ
    ֿך堣⠓׾ֶ鋅鷕׃זֻկ
    窫㼎ծ
    妜׃ְ
    ౙͷओ໾ɺ
    Ξ΢λʔ
    COLLECTION
    OUTER
    嗚稊勴⟝׾㼰׃㢌刿ׅ׷׌ֽדծ֮ז׋ך椚
    䟝ך暟⟝ח⳿⠓ִ׷〳腉䚍ָ넝ֻז׶תׅկ
    勴⟝׾㢌ִג嗚稊׃ג׫גֻ׌ְׁկ
    ׀䋞劄ך暟⟝כ
    鋅אַ׶תׇ׿ד׃׋ַ
    ꟗׄ׷
    ҰਓҰਓʹ߹Θͤͨ
    ސ٬ମݧΛఏڙ
    WebαΠτͷ๚໰ऀͷߦಈΛ

    ސ٬͝ͱʹϦΞϧλΠϜʹղੳ
    CX(ސ٬ମݧ)ϓϥοτϑΥʔϜ
    KARTEʹ͍ͭͯ

    View full-size slide

  10. 10
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    Ұ෦ൈਮ
    EC / ૯߹௨ൢ ۚ༥ / อݥ IT / αʔϏε ϝʔΧʔ
    ਓࡐ ඒ༰ / ϔϧεέΞ ෆಈ࢈ / ॅ୐৘ใ ڭҭ / ֶश
    ཱྀߦ / ަ௨
    ίϯςϯπ
    ※2020೥5݄8೔࣌఺ʢABC/50Իॱʣ
    KARTEಋೖاۀ༷

    View full-size slide

  11. 11
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    Real-time, Large-Scale, Global
    to real-time actions
    0.x sec
    stored
    8+ PB
    events / sec
    105,000
    inserted / month
    1 PB
    analyzed / month
    180+ PB
    Stats of KARTE

    View full-size slide

  12. 12
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    Event

    Latest User State
    Action΍
    ActionτϦΨʔͷͨΊͷ
    SegmentͳͲΛઃఆ
    KARTE ར༻ऀ༷
    ͷΤϯυϢʔβ
    KARTE ར༻ऀ༷
    ࣄલʹઃఆ͞ΕͨτϦΨʔͱ
    Latest User Stateʹج͍ͮͯɺ
    ActionΛ࣮ߦ
    0.x sec
    etc…
    Action
    ૹ৴͞ΕΔEvent͝ͱʹUser State
    ΛϦΞϧλΠϜʹղੳ
    Techical Overview of KARTE

    View full-size slide

  13. 13
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    Event

    Latest User State
    ૹ৴͞ΕΔEvent͝ͱʹUser State
    ΛϦΞϧλΠϜʹղੳ
    Action
    Action΍
    ActionτϦΨʔͷͨΊͷ
    SegmentͳͲΛઃఆ
    KARTE ར༻ऀ༷
    ͷΤϯυϢʔβ
    KARTE ར༻ऀ༷
    ࣄલʹઃఆ͞ΕͨτϦΨʔͱ
    Latest User Stateʹج͍ͮͯɺ
    ActionΛ࣮ߦ
    0.x sec
    • ղੳͷ࠷খͷߏ੒ཁૉ
    • શͯͷEventʹલఏ৚݅͸ͳ͍ “schema-less”
    • ༷ʑͳEventΛఆٛͰ͖Δ
    • E.g.) "view", "buy”, "identify" event
    KARTEͷ “Event” ͱ͸ʁ
    {
    "event_name": "buy",
    "user_id": "random_id",
    "values: {
    "item_id": "itemA",
    "revenue": 5000,
    "some_field": "some_data",
    "xxx": "yyy"
    }
    }
    Techical Overview of KARTE

    View full-size slide

  14. 14
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    Event

    Latest User State
    ૹ৴͞ΕΔEvent͝ͱʹUser State
    ΛϦΞϧλΠϜʹղੳ
    Action
    Action΍
    ActionτϦΨʔͷͨΊͷ
    SegmentͳͲΛઃఆ
    KARTE ར༻ऀ༷
    ͷΤϯυϢʔβ
    KARTE ར༻ऀ༷
    ࣄલʹઃఆ͞ΕͨτϦΨʔͱ
    Latest User Stateʹج͍ͮͯɺ
    ActionΛ࣮ߦ
    0.x sec
    KARTEͷ “User State” ͱ͸ʁ
    {
    "user_id": "random_id",
    "values": {
    "buy": {
    "item_id": {
    "count": 8,
    "first": "itemA",
    "last": "itemC",
    "count_sets": {
    "itemA": 2,
    "itemB": 1,
    "itemC": 5
    },
    ...
    },
    "revenue": {
    "count": 8,
    "min": 100,
    "max": 5000,
    "sum": 100000,
    ...
    }
    },
    ...
    }
    }
    • Event ΛϢʔβ࣠Ͱ·ͱΊɺ౷ܭ৘ใͳͲΛܭࢉͨ͠΋ͷ
    • "schema-less"
    • User Stateͷ֤஋ʹରͯ͠ɺηάϝϯςʔγϣϯΛ࣮ߦ͢Δ
    • E.g.) itemAΛ̎ճҎ্ߪೖͨ͜͠ͱ͕͋Δ
    Techical Overview of KARTE

    View full-size slide

  15. 15
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    AmazonEventBridge as Action
    • ଟछଟ༷ͳςϯϓϨʔτͳͲΛ༻ҙ
    • ઐ༻ͷΤσΟλʔ΋༻ҙ͠ɺHTML/CSS/
    JavaScriptϨϕϧͰActionΛฤूͰ͖Δ
    KARTEͷ “Action”
    etc…

    View full-size slide

  16. 16
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    AmazonEventBridge as Action
    • Actionͷ֦ுੑ / ֎෦ Systemͱͷ࿈ܞ ʁ
    • ؤுΕ͹ग़དྷΔ
    • ࿈ܞͷͨΊͷΞϓϦ/ΠϯϑϥΛઃܭ/ߏங/ӡ༻
    • Action෦෼͕ϘτϧωοΫͰUser State driven
    system ͷಛੑΛҾ͖ग़͖͠Εͯͳ͔ͬͨ
    KARTEͷ “Action” ͷ՝୊
    etc…

    View full-size slide

  17. 17
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    AmazonEventBridge as Action
    • Amazon EventBridgeʹΑͬͯAWSͱKARTE͕؆
    ୯ͰγʔϜϨεʹͭͳ͕Δ
    • όϦΤʔγϣϯ๛͔ͳAWSͷαʔϏεΛ׆༻Ͱ͖
    Δ͜ͱͰ༷ʑͳUser State Driven Systemͷ࣮ݱ͕
    Մೳ
    • AWSͷServerLess / Management Service Λ্ख
    ͘׆༻͢Ε͹ɺ͞Βʹ։ൃ/ӡ༻͕௿ίετʹ
    etc…
    Amazon EventBridge Ͱ޿͕Δ“Action”ͱKARTE
    New
    Amazon EventBridge

    View full-size slide

  18. 18
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    • Ϣʔβͷঢ়ଶʹԠͨ͡ి࿩αϙʔτ
    • ࣗ༝هड़Ξϯέʔτ෼ੳ
    • ϓϩΞΫςΟϒCall
    User State driven System with AmazonEventBridge & KARTE
    ×
    ×
    ×
    Amazon Connect
    ×
    Amazon Connect
    Amazon Comprehend

    View full-size slide

  19. 19
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    • Ϣʔβͷঢ়ଶʹԠͨ͡ి࿩αϙʔτ
    • ࣗ༝هड़Ξϯέʔτ෼ੳ
    • ϓϩΞΫςΟϒCall
    Ϣʔβͷঢ়ଶʹԠͨ͡ి࿩αϙʔτ(KARTE × Amazon Connect)
    ×
    ×
    ×
    Amazon Connect
    ×
    Amazon Connect
    Amazon Comprehend

    View full-size slide

  20. 2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc. 20
    Ϣʔβͷঢ়ଶʹԠͨ͡ి࿩αϙʔτ(KARTE × Amazon Connect)
    ి࿩Ͱ໰͍߹ΘͤΔΛબ୒
    Amazon ConnectͷFlowʹै͍
    ద੾ͳΦϖϨʔλ͔ΒՍి
    ΦϖϨʔλʔ
    ໰͍߹ΘͤϙοϓΞοϓ ઀٬αʔϏε
    Amazon ConnectͰͷ
    ॲཧΛτϦΨʔ
    KARTE ར༻ऀ༷
    ͷΤϯυϢʔβ
    Amazon Connect
    ΤϯυϢʔβͷঢ়ଶʹԠͯ͡ɺద੾ͳจ຺ͱλΠϛϯάͰద੾ͳΦϖϨʔλ͕Սి

    View full-size slide

  21. 21
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    Event

    Latest User State
    ૹ৴͞ΕΔEvent͝ͱʹUser State
    ΛϦΞϧλΠϜʹղੳ
    Action
    KARTE ར༻ऀ༷
    ͷΤϯυϢʔβ
    ࣄલʹઃఆ͞ΕͨτϦΨʔͱ
    Latest User Stateʹج͍ͮͯɺ
    ActionΛ࣮ߦ
    Amazon Connect AWS Lambda Amazon EventBridge
    ᶃKARTEͰදࣔͨ͠ϙοϓΞοϓ Ͱ
    `ి࿩Λ໰͍߹ΘͤΔ` Λ
    બ୒͢Δ͜ͱͰɺ
    ίʔϧόοΫʹඞཁͳEvent͕ൃՐ
    ᶄి࿩Λ͔͚͍ͨstateͰ͋Δ͜ͱΛτϦΨʔʹ
    Amazon EventBridge ʹ User StateΛૹ৴
    ᶅUser State͔Β
    ඞཁͳ৘ใΛऔಘ/Ճ޻͠ɺ
    Amazon ConnectͷapiΛcall
    ᶆLambda͔Β౉͖ͬͯͨ৘ใΛɺ
    Amazon ConnectͷContactFlow
    Ͱར༻͠ɺFlowʹै͍ి࿩Λ͔͚Δ
    Ϣʔβͷঢ়ଶʹԠͨ͡ి࿩αϙʔτ(KARTE × Amazon Connect)

    View full-size slide

  22. 22
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    ͜ΕʹΑΓɺ·ͣ͸͓٬༷ͷ଴͕ͪ࣌ؒ࡟ݮ͞Ε·͠
    ͨɻٙ໰ͷղফͷਫ਼౓΋্͕ΔͷͰɺ͓٬༷ʹͱͬͯͷ
    ൥Θ͠͞Λ཈੍͢Δ͜ͱ͕Ͱ͖·͢ɻ
    knowbeͷαʔϏεͷੑ্࣭ɺITϦςϥγʔͷߴ͍͓٬༷
    ͹͔ΓͰ͸ͳ͘ɺి࿩ରԠ΁ͷχʔζ͸ڧ͋͘Γ·͢ɻͦ
    ͜ʹஸೡʹ޲͖߹͑ΔΑ͏ʹͳͬͨͱߟ͍͑ͯ·͢ɻ
    Ϣʔβͷঢ়ଶʹԠͨ͡ి࿩αϙʔτ(KARTE × Amazon Connect)
    https://cxclip.karte.io/interview/recruit/

    View full-size slide

  23. 23
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    • Ϣʔβͷঢ়ଶʹԠͨ͡ి࿩αϙʔτ
    • ࣗ༝هड़Ξϯέʔτ෼ੳ
    • ϓϩΞΫςΟϒCall
    ࣗ༝هड़Ξϯέʔτ෼ੳ (KARTE × Amazon Comprehend)
    ×
    ×
    ×
    Amazon Connect
    ×
    Amazon Connect
    Amazon Comprehend

    View full-size slide

  24. 2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc. 24
    ࣗ༝هड़Ξϯέʔτ෼ੳ (KARTE × Amazon Comprehend)
    Ξϯέʔτճ౴ ճ౴಺༰
    ෼ੳ/Ωʔϫʔυநग़݁ՌΛ༻͍ͨ
    ΞΫγϣϯΛ࣮ߦ
    KARTE ར༻ऀ༷
    ͷΤϯυϢʔβ
    Ξϯέʔτ ઀٬αʔϏε Amazon Comprehend
    • ײ৘෼ੳ
    • Ωʔϫʔυநग़
    ෼ੳ/Ωʔϫʔυநग़݁ՌΛ
    KARTEʹૹ৴
    ࣗ༝هड़ͷΞϯέʔτͷ݁Ռ͔Βɺײ৘෼ੳͱΩʔϫʔυநग़Λ༻͍ͯɺ
    ΤϯυϢʔβͷຬ଍౓ͳͲʹԠͨ͡ΞΫγϣϯΛ࣮ߦ
    ϦΞϧλΠϜղੳ

    View full-size slide

  25. 25
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    Event

    Latest User State
    ૹ৴͞ΕΔEvent͝ͱʹUser State
    ΛϦΞϧλΠϜʹղੳ
    Action
    KARTE ར༻ऀ༷
    ͷΤϯυϢʔβ
    ࣄલʹઃఆ͞ΕͨτϦΨʔͱ
    Latest User Stateʹج͍ͮͯɺ
    ActionΛ࣮ߦ
    Amazon Comprehend AWS Lambda Amazon EventBridge
    ᶆAmazon ComprehendͰ
    ײ৘෼ੳͱΩʔϫʔυΛநग़
    ᶅUser State͔Β
    ඞཁͳ৘ใΛऔಘ/Ճ޻͠ɺ
    Amazon ComprehendͷapiΛcall
    ᶇKARTEͷapiΛ࢖͍ɺநग़σʔλΛEventͱͯ͠ൃՐ
    Event
    ᶈநग़σʔλΛ༻͍ͨActionΛ࣮ߦ
    ᶃ KARTEͰදࣔͨ͠ΞϯέʔτΛճ౴͢Δ͜ͱͰɺ
    Ξϯέʔτͷ಺༰ؚ͕·ΕͨEvent͕ൃՐ
    ᶄΞϯέʔτ͕ճ౴͞Εͨ͜ͱΛτϦΨʔʹ
    Amazon EventBridge ʹ User StateΛૹ৴
    ࣗ༝هड़Ξϯέʔτ෼ੳ (KARTE × Amazon Comprehend)

    View full-size slide

  26. 26
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    • Ϣʔβͷঢ়ଶʹԠͨ͡ి࿩αϙʔτ
    • ࣗ༝هड़Ξϯέʔτ෼ੳ
    • ϓϩΞΫςΟϒCall
    ϓϩΞΫςΟϒCall (KARTE × Amazon Connect × shopify)
    ×
    ×
    ×
    Amazon Connect
    ×
    Amazon Connect
    Amazon Comprehend

    View full-size slide

  27. 27
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    ECӡӦऀ
    ༧ظͤ͵ܽ඼ʹΑΔ෷
    ͍໭͠ͷ৘ใΛૹ৴
    ϦΞϧλΠϜղੳ
    ಛఆͷސ٬ʹϓϩΞΫςΟϒCall
    KARTE ར༻ऀ༷
    ͷΤϯυϢʔβ
    ༧ظͤ͵ܽ඼ʹΑΔ෷͍໭͠ͳͲͷൃੜΛτϦΨʔʹɺ༏ྑސ٬ʹϓϩΞΫςΟϒCall
    Amazon Connect
    AWS Lambda
    ϓϩΞΫςΟϒCall (KARTE × Amazon Connect × shopify)
    AWS Lambda

    View full-size slide

  28. 28
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.

    Latest User State
    ૹ৴͞ΕΔEvent͝ͱʹUser State
    ΛϦΞϧλΠϜʹղੳ
    Action
    KARTE ར༻ऀ༷
    ͷΤϯυϢʔβ
    ࣄલʹઃఆ͞ΕͨτϦΨʔͱ
    Latest User Stateʹج͍ͮͯɺ
    ActionΛ࣮ߦ
    Amazon Connect AWS Lambda Amazon EventBridge
    ᶃRefund΍DelayͳͲ͕ൃੜ͢ΔλΠϛϯάͰ

    shopifyͷEventBridge࿈ܞͰ

    Refund΍DelayͳͲͷ৘ใΛૹ৴
    ᶅి࿩͕ඞཁͳ༏ྑސ٬Ͱ͋Δ͜ͱΛτϦΨʔʹ
    (෷͍໭ֹۚ͠΍աڈͷ߹ܭֹ͔ۚΒ൑ఆ)
    Amazon EventBridge ʹ User StateΛૹ৴
    ᶆUser State͔Β
    ඞཁͳ৘ใΛऔಘ/Ճ޻͠ɺ
    Amazon ConnectͷapiΛcall
    ᶇLambda͔Β౉͖ͬͯͨ৘ใΛɺ
    Amazon ConnectͷContactFlow
    Ͱར༻͠ɺFlowʹै͍ి࿩Λ͔͚Δ
    AWS Lambda
    Amazon EventBridge
    ᶄLambdaΛ࢖ͬͯɺKARTEͷapiΛcall
    લఏɿshopify΁ͷKARTEͷλάಋೖ
    https://support.karte.io/post/2n0VFdxwe3z9wmsYVVCPcG
    ϓϩΞΫςΟϒCall (KARTE × Amazon Connect × shopify)

    View full-size slide

  29. 29
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    • Ϣʔβͷঢ়ଶʹԠͨ͡ి࿩αϙʔτ
    • ࣗ༝هड़Ξϯέʔτ෼ੳ
    • ϓϩΞΫςΟϒCall
    ࣮૷ίετ
    ×
    ×
    ×
    Amazon Connect
    ×
    Amazon Connect
    Amazon Comprehend
    ͦΕͧΕɺඇΤϯδχΞͰ1೔Ͱߏங

    View full-size slide

  30. 30
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    ·ͱΊ
    ·ͱΊ

    View full-size slide

  31. 31
    2020.10.28 ʛ ϏδωεʹΞδϦςΟʔΛ΋ͨΒ͢SaaS+αʔόʔϨε ʛɹ
    ɹɹʛɹɹ© PLAID Inc.
    + = ∞
    ·ͱΊ

    View full-size slide