Step 3: Call SAP Conversational AI APIs using OAuth token.Step 2: Generate OAuth token using Client Credentials.Step 1: Generate OAuth client for design time/run time APIs.In this tutorial, we will walk you through the steps for calling SAP Conversational AI APIs using OAuth tokens: Option 1: Generating OAuth token using Client Credentials With your developer token, you can make requests on every endpoint our API provides.You will have one request token for each version and for each environment of your bot. When you create a new bot, by default, your bot has only one main version v1 and is assigned to the “DEVELOPMENT” environment. With your request token (version/environment), you can make requests in the RUNTIME API, to analyze text or start a conversation.Note: As of May 2023 release, API calls to all the bots (including the ones created before February 2021) will require OAuth tokens to be passed along with the bot tokens.ĭepending on the token chosen, you are allowed to make different requests: With the introduction of OAuth for SAP Conversational AI chatbots in October 2020, bot developers have an option to authenticate the API calls made by their middleware or clients to bots created before February 2021 release of SAP Conversational AI using one of the following methods: Interact with their bots with run time APIs using a middleware.Configure their bots with design time APIs.SAP Conversational AI provides public APIs that can be consumed by bot developers to: OAuth focuses on client developer simplicity while providing specific authorization flows for web applications, desktop applications, mobile phones, and living room devices. What is OAuth? According to the OAuth website, OAuth is the industry-standard protocol for authorization. Before going through the detail on how to use OAuth-based Authentication for SAP Conversational AI chatbots, let’s clarify what OAuth is: I’m Harinder, and I’m working as a Product Owner at the SAP Conversational AI team.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |