単一APIが多人数、複数チャネルの
通話を可能にします

SMS、MMS、チャット、メッセージングアプリでの対話をネイティブサポート。共通のAPIを使用し、参加者やメッセージアーカイブの管理、連携システムの追加、Webhook通信の分析を行えます。
機能
対話型メッセージング
の実装を簡易化
- Node.js
- Python
- C#
- Java
- Go
- PHP
- Ruby
- twilio-cli
- curl
//Downloadthehelperlibraryfromhttps://www.twilio.com/docs/node/install//FindyourAccountSIDandAuthTokenattwilio.com/console//andsettheenvironmentvariables.Seehttp://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.conversations.v1.conversations.create().then(conversation=>console.log(conversation.sid));
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=os.environ['TWILIO_ACCOUNT_SID']auth_token=os.environ['TWILIO_AUTH_TOKEN']client=Client(account_sid,auth_token)conversation=client.conversations.v1.conversations.create()print(conversation.sid)
// Install the C# / .NET helper library from twilio.com/docs/csharp/installusingSystem;usingTwilio;usingTwilio.Rest.Conversations.V1;classProgram{staticvoidMain(string[]args){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securestringaccountSid=Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");stringauthToken=Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");TwilioClient.Init(accountSid,authToken);varconversation=ConversationResource.Create();Console.WriteLine(conversation.Sid);}}
// Install the Java helper library from twilio.com/docs/java/installimportcom.twilio.Twilio;importcom.twilio.rest.conversations.v1.Conversation;publicclassExample{// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securepublicstaticfinalStringACCOUNT_SID=System.getenv("TWILIO_ACCOUNT_SID");publicstaticfinalStringAUTH_TOKEN=System.getenv("TWILIO_AUTH_TOKEN");publicstaticvoidmain(String[]args){Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Conversationconversation=Conversation.creator().create();System.out.println(conversation.getSid());}}
// Download the helper library from https://www.twilio.com/docs/go/installpackagemainimport("fmt""github.com/twilio/twilio-go"conversations"github.com/twilio/twilio-go/rest/conversations/v1")funcmain(){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secureclient:=twilio.NewRestClient()params:=&conversations.CreateConversationParams{}resp,err:=client.ConversationsV1.CreateConversation(params)iferr!=nil{fmt.Println(err.Error())}else{ifresp.Sid!=nil{fmt.Println(*resp.Sid)}else{fmt.Println(resp.Sid)}}}
<?php// Update the path below to your autoload.php,// see https://getcomposer.org/doc/01-basic-usage.mdrequire_once'/path/to/vendor/autoload.php';useTwilio\Rest\Client;// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secure$sid=getenv("TWILIO_ACCOUNT_SID");$token=getenv("TWILIO_AUTH_TOKEN");$twilio=newClient($sid,$token);$conversation=$twilio->conversations->v1->conversations->create();print($conversation->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/installrequire'rubygems'require'twilio-ruby'# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=ENV['TWILIO_ACCOUNT_SID']auth_token=ENV['TWILIO_AUTH_TOKEN']@client=Twilio::REST::Client.new(account_sid,auth_token)conversation=@client.conversations.v1.conversations.createputsconversation.sid
# Install the twilio-cli from https://twil.io/cli
twilio api:conversations:v1:conversations:create
curl -X POST "https://conversations.twilio.com/v1/Conversations"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
複数チャネルでのマルチメディア対話をサポート
- マルチチャネルメッセージング: コードの追加なしに、SMS、MMS、チャット、WhatsAppのメッセージをオーケストレーション可能
- メディアサポート: 写真、ビデオなどのファイル種別を、複数チャネル上でシームレスに表示
- インテリジェントに文字連結: 長いメッセージを自動的に分割後、キャリア用のヘッダーを付与し文字を再連結
- スマートエンコーディング: SMSメッセージをエンコーディングし、最小サイズで送信(GSM-7以外の文字はUCS-2に変換)
- Node.js
- Python
- C#
- Java
- Go
- PHP
- Ruby
- twilio-cli
- curl
//Downloadthehelperlibraryfromhttps://www.twilio.com/docs/node/install//FindyourAccountSIDandAuthTokenattwilio.com/console//andsettheenvironmentvariables.Seehttp://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').participants.create().then(participant=>console.log(participant.sid));
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=os.environ['TWILIO_ACCOUNT_SID']auth_token=os.environ['TWILIO_AUTH_TOKEN']client=Client(account_sid,auth_token)participant=client.conversations \
.v1 \
.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.participants \
.create()print(participant.sid)
// Install the C# / .NET helper library from twilio.com/docs/csharp/installusingSystem;usingTwilio;usingTwilio.Rest.Conversations.V1.Conversation;classProgram{staticvoidMain(string[]args){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securestringaccountSid=Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");stringauthToken=Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");TwilioClient.Init(accountSid,authToken);varparticipant=ParticipantResource.Create(pathConversationSid:"CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");Console.WriteLine(participant.Sid);}}
// Install the Java helper library from twilio.com/docs/java/installimportcom.twilio.Twilio;importcom.twilio.rest.conversations.v1.conversation.Participant;publicclassExample{// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securepublicstaticfinalStringACCOUNT_SID=System.getenv("TWILIO_ACCOUNT_SID");publicstaticfinalStringAUTH_TOKEN=System.getenv("TWILIO_AUTH_TOKEN");publicstaticvoidmain(String[]args){Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Participantparticipant=Participant.creator("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").create();System.out.println(participant.getSid());}}
// Download the helper library from https://www.twilio.com/docs/go/installpackagemainimport("fmt""github.com/twilio/twilio-go"conversations"github.com/twilio/twilio-go/rest/conversations/v1")funcmain(){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secureclient:=twilio.NewRestClient()params:=&conversations.CreateConversationParticipantParams{}resp,err:=client.ConversationsV1.CreateConversationParticipant("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",params)iferr!=nil{fmt.Println(err.Error())}else{ifresp.Sid!=nil{fmt.Println(*resp.Sid)}else{fmt.Println(resp.Sid)}}}
<?php// Update the path below to your autoload.php,// see https://getcomposer.org/doc/01-basic-usage.mdrequire_once'/path/to/vendor/autoload.php';useTwilio\Rest\Client;// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secure$sid=getenv("TWILIO_ACCOUNT_SID");$token=getenv("TWILIO_AUTH_TOKEN");$twilio=newClient($sid,$token);$participant=$twilio->conversations->v1->conversations("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")->participants->create();print($participant->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/installrequire'rubygems'require'twilio-ruby'# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=ENV['TWILIO_ACCOUNT_SID']auth_token=ENV['TWILIO_AUTH_TOKEN']@client=Twilio::REST::Client.new(account_sid,auth_token)participant=@client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').participants.createputsparticipant.sid
# Install the twilio-cli from https://twil.io/cli
twilio api:conversations:v1:conversations:participants:create \
--conversation-sid CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
curl -X POST "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
参加者・権限の管理による最適化が可能
- 対話規模の拡張: 何千人ものお客様と1対1の対話をすることも、最大1,000名と同時に対話することも可能
- 参加者の管理: APIを使用し、参加者の追加や管理、役割の割り当てを実施
- 高度なオプトアウト機能: 各国の法規制や言語にあわせ、オプトインやオプトアウトをコンソールでカスタマイズ
- ネイティブグループテキスト送信: 各メッセージの送信者IDを表示する、MMSプロトコルによるグループテキスト送信をサポート(米国とカナダ)
- Node.js
- Python
- C#
- Java
- Go
- PHP
- Ruby
- twilio-cli
- curl
//Downloadthehelperlibraryfromhttps://www.twilio.com/docs/node/install//FindyourAccountSIDandAuthTokenattwilio.com/console//andsettheenvironmentvariables.Seehttp://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update({friendlyName:'friendly_name'}).then(conversation=>console.log(conversation.friendlyName));
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=os.environ['TWILIO_ACCOUNT_SID']auth_token=os.environ['TWILIO_AUTH_TOKEN']client=Client(account_sid,auth_token)conversation=client.conversations \
.v1 \
.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.update(friendly_name='friendly_name')print(conversation.friendly_name)
// Install the C# / .NET helper library from twilio.com/docs/csharp/installusingSystem;usingTwilio;usingTwilio.Rest.Conversations.V1;classProgram{staticvoidMain(string[]args){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securestringaccountSid=Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");stringauthToken=Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");TwilioClient.Init(accountSid,authToken);varconversation=ConversationResource.Update(friendlyName:"friendly_name",pathSid:"CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");Console.WriteLine(conversation.FriendlyName);}}
// Install the Java helper library from twilio.com/docs/java/installimportcom.twilio.Twilio;importcom.twilio.rest.conversations.v1.Conversation;publicclassExample{// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securepublicstaticfinalStringACCOUNT_SID=System.getenv("TWILIO_ACCOUNT_SID");publicstaticfinalStringAUTH_TOKEN=System.getenv("TWILIO_AUTH_TOKEN");publicstaticvoidmain(String[]args){Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Conversationconversation=Conversation.updater("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").setFriendlyName("friendly_name").update();System.out.println(conversation.getFriendlyName());}}
// Download the helper library from https://www.twilio.com/docs/go/installpackagemainimport("fmt""github.com/twilio/twilio-go"conversations"github.com/twilio/twilio-go/rest/conversations/v1")funcmain(){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secureclient:=twilio.NewRestClient()params:=&conversations.UpdateConversationParams{}params.SetFriendlyName("friendly_name")resp,err:=client.ConversationsV1.UpdateConversation("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",params)iferr!=nil{fmt.Println(err.Error())}else{ifresp.FriendlyName!=nil{fmt.Println(*resp.FriendlyName)}else{fmt.Println(resp.FriendlyName)}}}
<?php// Update the path below to your autoload.php,// see https://getcomposer.org/doc/01-basic-usage.mdrequire_once'/path/to/vendor/autoload.php';useTwilio\Rest\Client;// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secure$sid=getenv("TWILIO_ACCOUNT_SID");$token=getenv("TWILIO_AUTH_TOKEN");$twilio=newClient($sid,$token);$conversation=$twilio->conversations->v1->conversations("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")->update(["friendlyName"=>"friendly_name"]);print($conversation->friendlyName);
# Download the helper library from https://www.twilio.com/docs/ruby/installrequire'rubygems'require'twilio-ruby'# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=ENV['TWILIO_ACCOUNT_SID']auth_token=ENV['TWILIO_AUTH_TOKEN']@client=Twilio::REST::Client.new(account_sid,auth_token)conversation=@client.conversations.v1.conversations('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(friendly_name:'friendly_name')putsconversation.friendly_name
# Install the twilio-cli from https://twil.io/cli
twilio api:conversations:v1:conversations:update \
--sid CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
--friendly-name friendly_name
curl -X POST "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"\--data-urlencode "FriendlyName=friendly_name"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
コンプライアンス準拠は、顧客満足度向上の必須条件
- クラウドベースのアーカイブ:スレッドをアーカイブ化し、参加者とメッセージ履歴を保存
- ステータス&タイマー:ステータスとして対話中、停止中、終了を定義し、終了時間を設定
- 配信ステータス: SMS配信の受信者や、WhatsAppの既読ユーザーをメッセージログで表示
- HIPAA適合:SMSとチャットにより、HIPAAに準拠した患者ケアを実現
- curl
curl -X GET "https://conversations.twilio.com/v1/Conversations/Webhooks"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
短時間で対話機能をカスタマイズ・サービス開始
- チャットクライアントSDK: SDKを組み込み、モバイル・Webに対応
- Webhooks: 対話サービス全体に、不適切な言葉のフィルタリング機能や分析ツールなどを実装可能
- Scoped Webhooks: インテリジェントアシスタントやTwilio Studioのフローを、特定の対話に追加可能
- アプリケーションやUIキットをクイックデプロイ:機能豊富なiOS/Android向けSwiftとKotlinアプリで市場展開を迅速化
はじめに
使い慣れた開発言語を
お選びいただけます
Twilio Conversationsクイックスタート
会話をまず作成し、チャネルや参加者の追加・削除、検証用アプリケーションの構築と進めることができます。
始める
Conversations + WhatsApp Business API
Twilio Conversationsは、初期設定の状態でWhatsAppに対応。こちらのガイドを参考に、双方向のユースケースを設定できます。
ドキュメントはこちら
Chat
Twilio APIを使用し、Webアプリやモバイルアプリにチャット機能を任意の言語で追加できます。
ドキュメントはこちら
Conversations API
Conversations REST APIやリソースをベースに、多人数が複数チャネルから参加できる双方向メッセージングを構築できます。
ドキュメントはこちら
対話中にメディアを利用可能
クライアントサイドSDKとREST Media Content Service(MCS)APIを使用し、チャット中にメディア(写真、ビデオなど)を送信・表示する方法を確認できます。
ドキュメントはこちら
料金
ご利用分に応じたお支払い
料金はユーザー単位の従量制。ご利用分に応じてお支払いいただけます。Conversations APIはあらゆるユースケースに対応しているため、使用量やメッセージボリュームを心配する必要がありません。

「Twilioは、多彩なサービスとAPIを提供している点が、他社より優れていました。当社のさまざまなニーズに最適なサービス、手厚いサポートを提供してくれただけでなく、潜在的なニーズも積極的に理解・提案してもらえました」
Twilioが選ばれる理由
Twilioはあらゆる構築、効率的なコーディングが可能。
クラス最高レベルのチャネルAPIが、あらゆるチャネルのコミュニケーション品質を確保
グローバルな顧客リーチと圧倒的な規模で支える
800万人の開発者
高性能サーバーレスツールとフルプログラム可能なソリューションが、数分で実装可能
エンタープライズクラスのセキュリティと信頼性で支える19万以上の優良ブランド