顧客体験を多方面で強化
アプリやWeb環境用の魅力的なチャットは、柔軟な単一APIを使用するだけで構築できます。エンゲージメントも、顧客が好むあらゆるチャネルへ容易に拡張できます。また同時に、クラス最高レベルの信頼性を備えたTwilioのプラットフォームが顧客との関係を保護します。
アプリやWeb環境用の魅力的なチャットは、柔軟な単一APIを使用するだけで構築できます。エンゲージメントも、顧客が好むあらゆるチャネルへ容易に拡張できます。また同時に、クラス最高レベルの信頼性を備えたTwilioのプラットフォームが顧客との関係を保護します。
1つのAPIを使用した会話型チャットなどのクロスチャネルメッセージングが、双方向のエンゲージメントを促進します。
顧客ジャーニー全体をサポートするため、サポート、セールス、リード創出に双方向型メッセージングを活用します。
シームレスな顧客体験をサポートするため、Twilio Studioに組み込まれたライブサポート、オンデマンドリソース、チャットフローを活用します。
顧客とつながり、必要なサービスをアプリ内でシームレスに提供すれば、顧客体験、コンバージョン、ロイヤルティが向上します。
Web環境やアプリ内で2者間のクロスチャネルエンゲージメントを促進するため、Twilio Frontlineにより事前に構築された商取引ワークフローを使用します。
クイックスタートガイド、サンプルアプリ、SDKなど、Twilioの包括的なリソースライブラリーをご覧ください。Messagingを使用し、Web環境やアプリ内のチャットを迅速に構築できます。
Conversation参加者の作成
// Download the helper library from https://www.twilio.com/docs/node/install
// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = 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/install
import os
from twilio.rest import Client
# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_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)
using System;
using Twilio;
using Twilio.Rest.Conversations.V1.Conversation;
class Program
{
static void Main(string[] args)
{
// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");
TwilioClient.Init(accountSid, authToken);
var participant = ParticipantResource.Create(
identity: "<Chat User Identity>",
pathConversationSid: "CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
);
Console.WriteLine(participant.Sid);
}
}
public class Example {
// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");
public static void main(String[] args) {
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
Participant participant =
Participant.creator("CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
.setIdentity("<Chat User Identity>")
.create();
System.out.println(participant.getSid());
}
}
use Twilio\\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 = new Client(\$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/install
require 'rubygems'
require 'twilio-ruby'
# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_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>')
puts participant.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
信頼性に優れたMessagingプラットフォームでConversations APIを使用すると、アプリやブラウザにチャットを追加できます。料金は従量制です。使用量や使用期間に応じて割引が適用されます。