Click here to load reader

Twilio x AITalk 勉強会資料

  • View
    675

  • Download
    0

Embed Size (px)

Text of Twilio x AITalk 勉強会資料

  • Twilio+AITalk+Node.js+Socket.io

    TwilioJP

  • facebook: http://fb.com/katsumi.takahashi

    1994WebTwilio-UG

  • Smart Communication Award 2014

    TRANSREC

  • Smart Communication Award 2015

  • Im DOer

  • Twilio node.js+socket.io+twilio

  • Twilio

  • Twilio Web SF

    7E1300010

  • Twilio100

    Web

  • Twilio

  • Status Callback

  • Request URL

    Status Callback

  • Completed

    Status Callback

  • Status Callback( InitiatedTwilio Ringing Answered Completed Completed$0.0001/event

  • Status Callback

    CallSid

    AccountSid TwilioID

    From E.164

    To E.164

    CallStatus

    ApiVersion Twilio API

    Direction or inbound/outbound-api/outbound-dial

    ForwardedFrom

    CallerName ID1.5/

    +26696687

  • Callback StatusCallStatus

  • APIUpdate

  • Update /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}POST

    HelperNode.js

  • Gatherupdate

  • Twilio Call()

    Request URL

    TwiML wav

    Update()

    Request URL

    TwiML wav

  • Status Callbackupdate Twilio

  • Node.js+socket.io+twilio

  • Node.js JavaScriptNon-blocking I/O Google V8JavaScript npmTwilio WebNode.js ExpressSocket.io io.jsNode.jsForkNode.js4.x

  • Socket.io WebNode.jsJavaScript

    WebSocketWeb

    0.91.0 socket.emit(event, data) socket.on(event, callback)

  • Twilio WebWeb

  • TwilioSocket ClientSocket serverSocket Client Twilio

    TwilioSocket

    Twilio Socket Client

    emit()

    emit()

    emit()emit()

    RestAPI

    RestAPI

  • AITalk Update Update

  • Twilio

    Socket

    TwilioSocket

    Socket

    Twilio

    UserToCenter CenterToUser

    CenterToTwilio

    TwilioToCeter

    Socket.io

    PSTN

    heroku

    AITalk

    AITalk WebAPI

    sio.js twilioClient.js

    twi.js

    ai.js

    user.js Single Page Application

  • Lets Enjoy !