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

ピースオブケイクでのZapier活用術

 ピースオブケイクでのZapier活用術

ピースオブケイクでのZapier活用術

note engineer meetup #3
https://pieceofcake.connpass.com/event/128607/

operandoOS

June 12, 2019
Tweet

More Decks by operandoOS

Other Decks in Technology

Transcript

  1. ϐʔεΦϒέΠΫͰͷ
    Zapier׆༻ज़
    note engineer meetup #3

    View full-size slide

  2. About Me
    • Shinobu Okano
    • piece of cake, inc.
    • 2018 / 07 Join
    • Mobile Engineer ?
    • @operandoOS
    • note : operando_os

    View full-size slide

  3. Zapier
    https://zapier.com/

    View full-size slide

  4. Zapier
    • Connect Your Apps and Automate
    Workflows
    • ෳ਺ͷαʔϏεΛ࿈ܞͤͯ͞ϫʔΫϑϩʔΛ
    ࡞Γɺ࡞ۀΛࣗಈԽ͢Δπʔϧ
    • IFTTTʹࣅͨαʔϏε

    View full-size slide

  5. Zapierͷ͍͍ͱ͜Ζ
    • ϘλϯΛԡͨ͠Γ͢Δ͚ͩͰϫʔΫϑϩʔ

    ࡞੒Ͱ͖Δ
    • ϓϩάϥϜΛॻ͔ͳͯ͘΋࡞ۀͷࣗಈԽ͕

    Ͱ͖Δʂ͍͢͝ʂ
    • ࡞ͬͨϫʔΫϑϩʔ͕ͪΌΜͱಈ͍ͯΔײ

    View full-size slide

  6. ͳͥZapierΛಋೖ͔ͨ͠
    • ࡞ۀΛࣗಈԽͯ͠ɺ΋ͬͱେࣄͳ͜ͱʹ࣌ؒΛ
    ࢖͑ΔΑ͏ʹ
    • ͋ͳͨͷ࣌ؒ͸ͱͯ΋وॏͰ͢
    • ͔ͩΒɺࣗಈԽ͠·͠ΐ͏ʂ

    View full-size slide

  7. ΋ͬͱେࣄͳ͜ͱʹ࣌ؒΛ࢖͑
    ΔΑ͏ʹ
    • Zapierͷϖʔδʹ΋ࣅͨ͜ͱ͕ॻ͍ͯ͋Δ
    “Easy automation for busy people. Zapier
    moves info between your web apps
    automatically, so you can focus on your most
    important work.”

    View full-size slide

  8. ͳͥZapierΛಋೖ͔ͨ͠
    • ϓϩάϥϜ͕ॻ͚ͳ͍ਓʹ΋ࣗಈԽ͢Δָ͠͞Λ
    ମײͯ͠΄͍͠ʂࣗಈԽ͸ָ͍͠ʂ
    • ձࣾతʹ܁Γฦ͠ͷ࡞ۀ͸ࣗಈԽɾ࢓૊ΈԽ͢Δ
    ΋ͷʂͱ͍͏ҙࣝΛ͚͍ͭͨ
    • ࣗಈԽͰ͖ΔਓΛ૿΍͍ͨ͠

    View full-size slide

  9. AutomationɾKarakuri by mercari
    • Automation
    • ػցʹͰ͖Δ͜ͱ͸શͯػցʹ΍ΒͤΔ͜ͱͰ
    ࡞ۀΛࣗಈԽ
    • Karakuri
    • ਓతΤϥʔ͕ൃੜ͠ͳ͍ΧϥΫϦ(࢓૊Έ)Λ࡞Δ

    View full-size slide

  10. ࣮ࡍʹZapierͰϫʔΫϑϩʔΛ

    ࡞ͬͯΈ·͠ΐ͏

    View full-size slide

  11. ࠓճσϞͰ࡞ΔϫʔΫϑϩʔ
    • GoogleΧϨϯμʔʹ৽͍͠༧ఆ͕࡞੒͞ΕͨΒ

    Slackbot͔Βʮ༧ఆ͕࡞੒͞Ε·ͨ͠Αʔʯͬͯ
    μΠϨΫτϝοηʔδ͕དྷΔ
    • Slackbot͔ΒདྷΔμΠϨΫτϝοηʔδʹ

    ༧ఆͷαϚϦʔΛهࡌ͢Δ

    View full-size slide

  12. ZapͬͯͳΜͰ͔͢
    • 1ͭͷϫʔΫϑϩʔΛද͢୯Ґ
    • Zapʹ͸TriggerͱAction͕ඞͣ͋Γ·͢

    View full-size slide

  13. TriggerͬͯͳΜͰ͔͢
    • ZapʢϫʔΫϑϩʔʣΛ։࢝͢ΔͨΊͷҾ͖ۚ
    • ઌఔ࡞ͬͨϫʔΫϑϩʔͩͱʮGoogleΧϨϯ
    μʔʹ৽͍͠༧ఆ͕࡞੒͞ΕͨΒʯ͕Trigger
    ʹͳΓ·͢

    View full-size slide

  14. ActionͬͯͳΜͰ͔͢
    • TriggerΛݩʹ࣮ߦ͍ͨ͠׆ಈ
    • ઌఔ࡞ͬͨϫʔΫϑϩʔͩͱʮSlackbot͔Β
    ʮ༧ఆ͕࡞੒͞Ε·ͨ͠ΑʔʯͬͯμΠϨΫ
    τϝοηʔδ͕དྷΔʯ͕ActionʹͳΓ·͢

    View full-size slide

  15. TaskͬͯͳΜͰ͔͢
    • ࣮ߦ͞ΕͨActionΛද͢୯Ґ
    • Zapierͷϓϥϯ͝ͱʹɺTask਺ʹ͸࣮ߦ্ݶ͕
    ͋Γ·͢

    View full-size slide

  16. ZapͬͯͳΜͰ͔͢
    • 1ͭͷϫʔΫϑϩʔΛද͢୯Ґ
    • Zapʹ͸TriggerͱAction͕ඞͣ͋Γ·͢
    • Zap͸1ͭͷTrigger͔࣋ͯ͠ͳ͍
    • Zap͸ෳ਺ͷActionΛ࣋ͭ͜ͱ͕Ͱ͖Δ

    View full-size slide

  17. Zapierͷ༻ޠ·ͱΊ
    https://zapier.com/help/terminology/

    View full-size slide

  18. Zapier Pricing
    https://zapier.com/pricing

    View full-size slide

  19. Zapier Pricing

    View full-size slide

  20. Zapier Teams
    • ϐʔεΦϒέΠΫ͸Teamsϓϥϯ
    • ຖ݄ 312.50υϧ
    • ར༻ऀ਺ɾZap਺ʹԠͨ͡௥Ճ՝ۚ͸ͳ͠
    • Task਺ͷ্ݶ͸͋Γʢ݄ 50,000 taskʣ

    View full-size slide

  21. Ͳ͏΍ͬͯಋೖ͔ͨ͠
    • લ৬Ͱಋೖ͞Ε͍ͯͨͷΛࢥ͍ग़͢
    • ͿͬͪΌ͚ લ৬Ͱ͸ࣗ෼ Zapier࢖ͬͯͳ͔ͬ
    ͨ੎ʢ͑...
    • ;ʔΜఔ౓ʹ͔͠ࢥͬͯͳͯ͘࢖ͬͯͳ͔ͬ
    ͨ

    View full-size slide

  22. Ͳ͏΍ͬͯಋೖ͔ͨ͠
    • ϐࣾʹ͖ͯɺࡉ͔͍࡞ۀΛࣗಈԽ͍ͨ͜͠ͱ
    ͕ΊͬͪΌग़͖ͯͨ
    • पΓΛݟΔͱࣗಈԽͰ͖ͦ͏͚ͩͲɺख࡞ۀ
    ͰؤுͬͯΔ࡞ۀ͕ͦͦ͋͜͜Δ
    • ΈΜͳͷ࣌ؒΛ΋ͬͱ࠷ߴͷ͜ͱʹ࢖ͬͯ΄
    ͍͠ʂؾ͔࣋ͪ͠ժੜ͑ͯ͜ͳ͍

    View full-size slide

  23. Ͳ͏΍ͬͯಋೖ͔ͨ͠
    • ·ͣ͸ݸਓͰ࢖ͬͯΈΔ
    • ΍Γ͍ͨ͜ͱ͕࣮ݱͰ͖Δ͔΍ͲΜͳײ͡ͳͷ͔Λ೺
    Ѳ
    • ʮ͜Ε͸͍͚ΔʂʯͱࢥͬͨͷͰɺCTOͱCFOʹ૬ஊ
    • ຖ݄͓͕͍ۚ͘Β͔͔Γͦ͏ͱ͔
    • OK΋ΒͬͨͷͰશࣾಋೖ

    View full-size slide

  24. Zapierಋೖޙ
    • ·ͣ͸શһZapierʹট଴
    • શࣾఆྫͰZapierʹ͍ͭͯͬ͘͟Γઆ໌ + σϞ

    View full-size slide

  25. Zapierಋೖޙ
    • ࠷ॳͷऔֻ͔ͬΓΛखॿ͚͢ΔϫʔΫγϣο
    ϓͷ։࠵
    • SlackͷࣗಈԽνϟϯωϧͰ૬ஊʹͷΔ
    • ZapierͰࣗ෼Ͱ৭ʑ࡞ͬͯɺશମʹڞ༗͢Δ
    • ZapierͰ࡞ͬͨΑʂͬͯݴ͏

    View full-size slide

  26. Zapierͷট଴ΛࣗಈԽ͢Δ
    • ট଴͢Δ࡞ۀ͕໘౗ʹͳͬͨͷͰZapierͰࣗಈԽ
    ͯ͠ɺSlack͔Βট଴Ͱ͖ΔΑ͏ʹͨ͠
    • SlackͷSlash CommandͰZapierͷϝϯόʔট଴
    ͕Ͱ͖ΔZapΛ૊ΜͰΈͨ
    • https://note.mu/operando_os/n/
    n71c9281eea5e

    View full-size slide

  27. ϐʔεΦϒέΠΫͰ࣮ࡍʹӡ
    ༻͞Ε͍ͯΔZap঺հ

    View full-size slide

  28. ݸਓ༻Zap ঺հ

    View full-size slide

  29. ݸਓZap
    • GoogleΧϨϯμʔʹ৽͍͠༧ఆ͕࡞੒͞ΕͨΒ

    Slackbot͔Βʮ༧ఆ͕࡞੒͞Ε·ͨ͠ΑʔʯͬͯμΠϨΫτ
    ϝοηʔδ͕དྷΔ
    • ϓϨϛΞϜϑϥΠσʔʹSlack statusΛ:premiumfriday:

    ʹ͢Δ
    • SlackͰࣗಈԽ͸Ғେʂ(auto_idai)ϦΞΫγϣϯ͕

    ͚ͭΒΕͨൃݴΛूΊΔ

    View full-size slide

  30. ݸਓZap
    • GitHubͷPRͷreviewʹΞαΠϯ͞ΕͨΒ
    TodoistʹλεΫొ࿥͢Δ
    • GoogleΧϨϯμʔʹग़੮ऀͱͯ͠ొ࿥͞Εͨ
    ΒTodoistʹλεΫొ࿥͢Δ

    View full-size slide

  31. νʔϜ༻Zap ঺հ

    View full-size slide

  32. Kaizenఆྫٞࣄ࿥Docsͷ

    ࡞੒ࣗಈԽ

    View full-size slide

  33. Nuxt.jsͷReleaseΛSlackʹ௨஌͢Δ

    View full-size slide

  34. cakesͷײ૝πΠʔτΛSlackʹ
    ௨஌͢Δ

    View full-size slide

  35. ো֐ରԠνϟϯωϧͰͷ

    εϨουॻ͖ࠐΈܯࠂbot͞Μ

    View full-size slide

  36. νʔϜZap
    • note proͷ໰͍߹ΘͤདྷͨΒSlackʹ௨஌͢Δ
    • ௨஌͕͘Δ͜ͱͰɺ୲౰ऀ͚ͩ͡Όͳ͘

    पΓͷਓ΋ςϯγϣϯ্͛ΒΕͯΔؾ͕ͯ͠ɺ
    Ұମײ͕ग़ͨʂ
    • GoogleϑΥʔϜʹೖྗ͕͋ͬͨΒ

    GmailͰςϯϓϨΛࣗಈฦ৴͢Δ

    View full-size slide

  37. શࣾ༻Zap ঺հ

    View full-size slide

  38. ձۭ͚ٞࣨΑ͏Ͷʙbot͞Μ

    View full-size slide

  39. ձۭ͚ٞࣨΑ͏Ͷʙbot͞Μ

    View full-size slide

  40. ձۭ͚ٞࣨΑ͏Ͷʙbot͞Μ
    • ͨͬͨ͜Ε͚ͩͰ࡞Ε·͢ʂ

    View full-size slide

  41. Slackʹ৽͍͠νϟϯωϧ͕Ͱ
    ͖ͨΒڭ͑ͯ͘ΕΔ΍ͭ

    View full-size slide

  42. Slackʹ৽͍͠Emoji͕

    ௥Ճ͞ΕͨΒڭ͑ͯ͘ΕΔ΍ͭ

    View full-size slide

  43. Slack͔ΒGoogleΧϨϯμʔʹ
    ٳΈͷ༧ఆΛೖΕΔ΍ͭ

    View full-size slide

  44. • SlackͷslashίϚϯυͰ ʮ/ٳΉ ೔෇ʯΛ

    ೖΕΔ
    Slack͔ΒGoogleΧϨϯμʔʹ
    ٳΈͷ༧ఆΛೖΕΔ΍ͭ

    View full-size slide

  45. • ۈଵ࿈བྷνϟϯωϧʹٳΉ͜ͱ͕
    ௨஌͞ΕΔ
    Slack͔ΒGoogleΧϨϯμʔʹ
    ٳΈͷ༧ఆΛೖΕΔ΍ͭ

    View full-size slide

  46. • GoogleΧϨϯμʔʹٳΈͷ༧ఆ͕
    ࡞੒͞ΕΔ
    Slack͔ΒGoogleΧϨϯμʔʹ
    ٳΈͷ༧ఆΛೖΕΔ΍ͭ

    View full-size slide

  47. ZapierΛܧଓͤ͞Δൿ݃
    • Zap(࡞ۀͷࣗಈԽ)Λ࡞ͬͨਓΛ΄ΊΔʂ
    • ࡞ͬͨࣗಈԽͷϑϩʔΛڞ༗͠Α͏ʂ
    • ͦΕʹΠϯεϐϨʔγϣϯΛड͚ͯ

    ͞Βʹૉ੖Β͍ࣗ͠ಈԽ͕ੜ·ΕΔ
    • Θ͔Βͳ͚Ε͹Θ͔Γͦ͏ͳਓʹ૬ஊ͠Α͏ʂ

    View full-size slide

  48. ZapierΛܧଓͤ͞Δൿ݃
    • ʮͦΕɺZapierͰࣗಈԽͰ͖ͦ͏͡ΌͶʁʯͷ੠ֻ͚
    • ݸਓϨϕϧͷࣗಈԽ͕Ͱ͖ͨΒɺνʔϜ΍શࣾͷۀ຿
    Λޮ཰Խ͢ΔΑ͏ͳࣗಈԽͷ࢓૊Έ࡞ΓʹνϟϨϯδ
    ͯ͠ΈΔ
    • νʔϜ΍૊৫ϨϕϧͰࣗಈԽʹ޲͖߹͍ͬͯ͜͏ʂ

    View full-size slide

  49. ϐʔεΦϒέΠΫͷZapier

    ར༻ঢ়گ
    • 5݄10͔Β6݄10·Ͱͷtask࣮ߦ਺
    • 29501 Tasks
    • ݁ߏߥͿ݄ͬͨͩͬͨ͆
    • ಈ͍ͯΔZap਺
    • 130 Zap
    • ୭͕ͲΕ͘Β͍ࣗಈԽͯ͠Δ͔΋Θ͔Δ

    View full-size slide

  50. ՝୊
    • ܧଓతʹ࢖ͬͯ΋Β͏ɾจԽͱͯࠜ͠෇͔ͤΔͱ͜Ζ
    • SlackͷAPI limitʹҾ͔͔ͬͬͨͱ͔
    • Zapͷ૊Έํ͸޻෉͕ඞཁ
    • Trigger͸΋ͷʹΑͬͯ࠷େ5෼஗Ԇ͢ΔͷͰ஫ҙ

    View full-size slide

  51. Zapier؅ཧऀͱͯ͠
    • Zapier Manager Trigger͸׆༻͢ΔͱΑ͍
    • ૬ஊɾαϙʔτ͢Δͷ݁ߏ࣌ؒ࢖͏
    • Task਺ΊͬͪΌফඅ͠·͘ΔZap͕ͳ͍͔
    νΣοΫ͕ඞཁ

    View full-size slide

  52. Zapier૬ஊ͏͚ͨ·ΘΓ·͢
    • ձࣾͰͷZapierಋೖ
    • Zapierͷӡ༻૬ஊ
    • ZapierͰ࣮ݱ͍ͨ͠ϫʔΫϑϩʔͷ૬ஊ
    • ͳͲͳͲ...

    View full-size slide

  53. Zapier૬ஊ͏͚ͨ·ΘΓ·͢
    • ઌि Kyash͞Μͷ͜ʹ;͊ʔ͞Μ͔Β૬ஊΛ
    ͍͖ͨͩɺʮSlack͔ΒGoogleΧϨϯμʔʹ
    ٳΈͷ༧ఆΛೖΕΔ΍ͭʯͱ͔ͷϨΫνϟʔ
    ͱ͔͍͖ͤͯͨͩ͞·ͨ͠ʂ

    View full-size slide

  54. Zapier૬ஊ͏͚ͨ·ΘΓ·͢
    • ࠙਌ձͰ࿩͔͚͍ͯͩ͘͠͞ʂ
    • ·ͨ͸ɺTwitter @operandoOS ·Ͱ

    ͝࿈བྷ͍ͩ͘͞ʂ
    • ΑΖ͓͘͠ئ͍͠·͢ʂ

    View full-size slide

  55. Zapier meetup΍Γ·͢ʂ
    • 7݄͘Β͍ʹ͸…ʂ
    • ࠓ೔meetupͷืूϖʔδ࡞Γ͔͚ͨͬͨͲ…

    View full-size slide

  56. ࢿྉ΋ZapierͰ࡞ͬͯ·͔͢ʁ

    View full-size slide

  57. ࢿྉ΋ZapierͰ࡞ͬͯ·͔͢ʁ

    View full-size slide

  58. ϓϩάϥϜॻ͚·͢ʂ
    • nodeͱPython͕࣮͸࢖͑·͢ʂ
    • ຐվ଄͍ͨ͠์୊
    • ͚Ͳɺ࢖Θͳͯ͘΋ΊͬͪΌ৭ʑͰ͖Δ

    View full-size slide

  59. ࠷ॳͷTrigger͸taks਺ͱͯ͠
    Χ΢ϯτ͞Εͳ͍ʁ
    • τϦΨʔ͸͞Εͳͯ͘ɺ్தͷAction΍Filte
    ͸Χ΢ϯτ͞ΕΔ
    • Filter͸௨ա͢ΔͱΧ΢ϯτ͞ΕΔ͔ͳ
    • ௨ա͠ͳ͚Ε͹Χ΢ϯτ͞Εͳ͍
    • https://zapier.com/help/tasks/

    View full-size slide

  60. Zapierʹ͍ͭͯॻ͔Εͨnoteͷ
    هࣄΛ·ͱΊͯ·͢
    • ZapierϚΨδϯ
    • https://note.mu/operando_os/m/
    me6ba17cfc6e0

    View full-size slide

  61. ࢀߟࢿྉ
    ʮϝϧΧϦ ZapierʯͰݕࡧݕࡧʂʂ

    View full-size slide

  62. ࢀߟࢿྉ
    • ࣾ಺ͷ໘౗ͳख࡞ۀ͸Zapierʹ΍ΒͤΑ͏ʔʔϊϯϓϩάϥϚʔͰ΋ۀ຿ࣗ
    ಈԽ͕Ͱ͖ΔπʔϧΛಋೖͯ͠Έͯ
    • https://tech.mercari.com/entry/2017/12/22/110934
    • ʮϊϯϓϩάϥϚʔͰ΋ɺࣗಈԽ͸Ͱ͖ΔʯZapier Automation Meetup
    Tokyo #0 Λ։࠵͠·ͨ͠
    • https://tech.mercari.com/entry/2018/07/13/150000
    • ZapierͷTeamsϓϥϯΛձࣾͰܖ໿ͯ͠࢖ͬͯΈͨ
    • https://qiita.com/nottegra/items/c248f8c4474439f40a49

    View full-size slide

  63. ࢀߟࢿྉ
    • ࣾ಺ͷ໘౗ͳख࡞ۀ͸Zapierʹ΍ΒͤΑ͏ #2 ʙWebhook
    Λ࢖ͬͯɺࣗಈԽͷ෯Λ޿͛Δʙ
    • https://tech.mercari.com/entry/2018/06/12/110000
    • ϊϯϓϩάϥϚʔ͕൒೥Ͱ400Ҏ্ͷۀ຿ΛࣗಈԽʂϝϧΧ
    Ϧ͕࡞ΔʮKarakuriʯͱ͸
    • https://seleck.cc/1230

    View full-size slide