Passer au contenu principal
You are viewing the French site, but your language preference is set to English. Switch to English site →
Chat

Développez les relations avec vos clients grâce à un chat haute qualité

Ajoutez une fonctionnalité de chat à votre application ou à votre navigateur à l'aide de l'API et de la plateforme fiable de Twilio pour alimenter n'importe quel workflow de conversation.

Illustration d'une conversation avec un client sur le chat intégré à l'application par une plateforme API fiable

API

Rapprochez‑vous de vos clients sur
les canaux appropriés grâce à une seule API

Illustration représentant la connexion de l'API Conversations multipartite à travers différents canaux

API Conversations

Renforcez l'engagement bidirectionnel grâce à la messagerie multicanale pour le chat intégré à l'application et bien plus encore en utilisant une seule API.

  • Proposez la vente et l'assistance via chat intégré à l'application et sur le Web, SMS, MMS, Facebook Messenger, Google Business Messages, WhatsApp.
  • Accélérez la mise sur le marché grâce aux démarrages rapides, aux exemples d'applications et aux SDK.

Découvrez l'API Conversations

Cas d'usage

Chat conçu pour le commerce
et la fidélité des clients

Conversations commerciales

Optimisez l'ensemble du parcours client grâce aux messages bidirectionnels pour assurer l'assistance, les ventes et la génération des prospects.

Service client

Offrez une expérience client fluide grâce à l'assistance en direct, aux ressources à la demande et aux flux de discussion intégrés à Twilio Studio.

Services à la demande

Connectez vos clients aux services souhaités au sein de votre application en toute transparence pour améliorer les expériences, les conversions et la fidélité.

Marché numérique

Créez l'engagement multicanal entre deux parties sur le Web ou dans l'application, en utilisant des workflows commerciaux préconstruits à l'aide de Twilio Frontline.

Ressources pour développeurs

Créez un participant pour la 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

Lisez la documentation

Tirez parti des guides de démarrage rapide, des exemples d'application, des SDK et d'autres ressources de notre bibliothèque de ressources complète pour construire votre solution pour le chat intégré à l'application et sur le Web avec MessagingX.

Tarifs

Le chat en toute simplicité
avec MessagingX

Ajoutez le chat à votre application ou à votre navigateur à l'aide de l'API Conversations de la plateforme fiable MessagingX. Payez au fur et à mesure et profitez de remises sur volume pour garantir une utilisation à long terme et à grande échelle.