Conceptos clave: Bot Connector APIKey concepts - Bot Connector API
Bot Framework y Azure Bot Service permiten que el bot se comunique con los usuarios en Teams, Facebook y mucho más.Bot Framework and the Azure Bot service allow your bot to communicate with users on Teams, Facebook, and more. Los canales están disponibles en dos formatos: como servicio incluido como parte de Azure Bot Service y como bibliotecas de adaptadores para su uso con Bot Framework SDK.Channels are available in two forms: as service included as part of Azure Bot Service and as adapter libraries for use with the Bot Framework SDK. Este artículo se centra en los canales normalizados incluidos en Azure Bot Service.This article focuses on the standardized channels included in the Azure Bot Service.
Canales de Bot FrameworkBot Framework Channels
Bot Framework permiten al bot intercambiar mensajes con canales configurados en Azure Portal.Bot Framework channels enable your bot to exchange messages with channels configured in the Azure Portal. Usa los estándares del sector REST y JSON a través de HTTPS y permite la autenticación con tokens de portador JWT.It uses industry-standard REST and JSON over HTTPS and enables authentication with JWT Bearer tokens. Para obtener información detallada sobre cómo usar el servicio Bot Connector, vea Autenticación y los demás artículos de esta sección.For detailed information about how to use the Bot Connector service, see Authentication and the remaining articles in this section.
ActividadActivity
El servicio Connector intercambia información entre el bot y el canal (usuario) pasando un objeto Activity.The Connector service exchanges information between bot and channel (user) by passing an Activity object. El tipo de actividad más común es message, pero hay otros tipos de actividades que se pueden usar para comunicar distintos tipos de información a un bot o canal.The most common type of activity is message, but there are other activity types that can be used to communicate various types of information to a bot or channel. Para obtener información detallada sobre las actividades del servicio Bot Connector, vea Introducción a las actividades.For details about Activities in the Bot Connector service, see Activities overview.
AuthenticationAuthentication
Bot Framework Service usa tokens de portador JWT para la autenticación.Bot Framework Services use JWT Bearer tokens for authentication. Para obtener información detallada sobre cómo autenticar las solicitudes salientes que envía el bot de Bot Framework, cómo autenticar las solicitudes entrantes que recibe su bot desde Bot Framework y mucho más, vea Autenticación.For detailed information about how to authenticate outbound requests that your bot sends to the Bot Framework, how to authenticate inbound requests that your bot receives from the Bot Framework, and more, see Authentication.
Bibliotecas de clientesClient libraries
Bot Framework proporciona bibliotecas de cliente que se pueden usar para crear bots en C#, JavaScript y Python.The Bot Framework provides client libraries that can be used to build bots in either C#, JavaScript, and Python.
- Para crear un bot con C#, use Bot Framework SDK para C#.To build a bot using C#, use the Bot Framework SDK for C#.
- Para crear un bot con Node.js, use Bot Framework SDK para Node.js.To build a bot using Node.js, use the Bot Framework SDK for Node.js.
Además de simplificar las llamadas a las API REST de Bot Framework, cada Bot Framework SDK también proporciona un sistema eficaz para crear diálogos que contienen la lógica de la conversación, avisos integrados para respuestas tan sencillas como Sí/No, cadenas, números y enumeraciones, compatibilidad integrada con marcos eficaces de inteligencia artificial, como LUIS y mucho más.In addition to simplifying calls to Bot Framework REST APIs, each Bot Framework SDK also provides a powerful system for building dialogs that encapsulate conversational logic, built-in prompts for simple things such as Yes/No, strings, numbers, and enumerations, built-in support for powerful AI frameworks such as LUIS, and more.
Nota
Como alternativa al uso de los SDK, puede generar su propia biblioteca de cliente en el lenguaje de su elección mediante el archivo Swagger de Bot Connector o codificar directamente para su API REST.As an alternative to using the SDK, you can generate your own client library in the language of your choice by using the Bot Connector Swagger file or code direct to its REST API.
Servicio Bot StateBot State service
El servicio de estado de Microsoft bot Framework se retirará a partir del 30 de marzo de 2018.The Microsoft Bot Framework State service is retired as of March 30, 2018. Anteriormente, los bots creados en Azure Bot Service o en el SDK Bot Builder tenían una conexión predeterminada con este servicio hospedado por Microsoft para almacenar los datos de estado del bot.Previously, bots built on the Azure Bot Service or the Bot Builder SDK had a default connection to this service hosted by Microsoft to store bot state data. Los bots se deberán actualizar para usar su propio almacenamiento del estado.Bots will need to be updated to use their own state storage.
Recursos adicionalesAdditional resources
Para más información sobre la creación de bots mediante el servicio Connector, revise los artículos de esta sección, empezando por Autenticación.Learn more about building bots using the Connector service by reviewing articles throughout this section, beginning with Authentication. Si tiene problemas o tiene sugerencias sobre el servicio Connector, consulte Soporte técnico para obtener una lista de recursos disponibles.If you encounter problems or have suggestions regarding the Connector service, see Support for a list of available resources.