メインコンテンツにスキップ
You are viewing the Japanese site, but your language preference is set to English. Switch to English site →
Chat

クラス最高レベルのチャットを通じ、顧客関係を構築

TwilioのAPIと信頼性に優れたプラットフォームを使用してアプリにチャット機能を追加すると、あらゆる対話型ワークフローが強化されます。

信頼性に優れたAPIプラットフォームのアプリ内チャットを利用し、顧客が会話しているイラスト。

API

1つのAPIを使用し
適切なチャネルで顧客にリーチ

さまざまなチャネルを介して多人数とつながるConversations APIの図

Conversations API

双方向のエンゲージメントは、単一APIを使用したアプリ内チャットなどのクロスチャネルメッセージングにより促進されます。

  • アプリ内やWeb環境のチャット、SMS、MMS、Facebook Messenger、GoogleのBusiness Messages、WhatsAppを通じた商取引やサポートを実現。
  • クイックスタート、サンプルアプリ、SDKにより、迅速に市場参入。

Conversations APIのご案内

ユースケース

商取引や顧客ロイヤルティを目的に
チャットを構築

会話型コマース

顧客ジャーニー全体をサポートするため、サポート、セールス、リード創出に双方向型メッセージングを活用します。

カスタマーケア

シームレスな顧客体験をサポートするため、Twilio Studioに組み込まれたライブサポート、オンデマンドリソース、チャットフローを活用します。

オンデマンドサービス

顧客とつながり、必要なサービスをアプリ内でシームレスに提供すれば、顧客体験、コンバージョン、ロイヤルティが向上します。

デジタルマーケットプレイス

Web環境やアプリ内で2者間のクロスチャネルエンゲージメントを促進するため、Twilio Frontlineにより事前に構築された商取引ワークフローを使用します。

開発者リソース

Conversation参加者の作成
  • 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({identity:'<Chat User Identity>'}).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(identity='<Chat User Identity>')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(identity:"<Chat User Identity>",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").setIdentity("<Chat User Identity>").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{}params.SetIdentity("<Chat User Identity>")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(["identity"=>"<Chat User Identity>"]);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.create(identity:'<Chat User Identity>')putsparticipant.sid
# Install the twilio-cli from https://twil.io/cli twilio api:conversations:v1:conversations:participants:create \ --conversation-sid CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \ --identity "<Chat User Identity>"
curl -X POST "https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants"\--data-urlencode "Identity=<Chat User Identity>"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN

ドキュメントはこちら

クイックスタートガイド、サンプルアプリ、SDKなど、Twilioの包括的なリソースライブラリーをご覧ください。MessagingXを使用し、Web環境やアプリ内のチャットを迅速に構築できます。

料金

MessagingXにより
チャットが簡単に実現

信頼性に優れたMessagingXプラットフォームでConversations APIを使用すると、アプリやブラウザにチャットを追加できます。料金は従量制です。使用量や使用期間に応じて割引が適用されます。