VOOZH about

URL: https://www.cdata.com/kb/tech/saparibasource-cloud-flowise.rst

⇱ How to Connect Flowise AI Agents to Live SAP Ariba Source Data via CData Connect AI


How to Connect Flowise AI Agents to Live SAP Ariba Source Data via CData Connect AI

Integrate Flowise AI with the CData Connect AI MCP Server to enable agents to securely query and act on live SAP Ariba Source data without replication.

Flowise AI is an open-source, no-code tool for building AI workflows and custom agents visually. Its drag-and-drop interface allows you to integrate large language models (LLMs) with APIs, databases, and external systems effortlessly.

CData Connect AI enables real-time connectivity to hundreds of enterprise data sources. Through its Model Context Protocol (MCP) server, CData Connect AI bridges Flowise agents with live SAP Ariba Source securely and efficiently, no data replication required. By combining Flowise AI's intuitive agent builder with CData's MCP integration, users can create agents capable of fetching, analyzing, and acting upon live SAP Ariba Source data directly within Flowise AI workflows.

This guide shows you how to connect Flowise AI to CData Connect AI MCP, set up credentials, and enable your agents to query live SAP Ariba Source data in real time.

Step 1: Configure SAP Ariba Source Connectivity for Flowise

Connectivity to SAP Ariba Source from Flowise AI is made possible through CData Connect AI's Remote MCP Server. To interact with SAP Ariba Source data from Flowise AI, we start by creating and configuring a SAP Ariba Source connection in CData Connect AI.

  1. Log into Connect AI, click Sources, and then click Add Connection
  2. πŸ‘ Adding a connection in Connect AI
  3. Select SAP Ariba Source from the Add Connection panel
  4. πŸ‘ Selecting data source
  5. Enter the necessary authentication properties to connect to SAP Ariba Source.

    In order to connect with SAP Ariba Source, set the following:

    • API: Specify which API you would like the provider to retrieve SAP Ariba data from. Select the Supplier, Sourcing Project Management, or Contract API based on your business role (possible values are SupplierDataAPIWithPaginationV4, SourcingProjectManagementAPIV2, or ContractAPIV1).
    • DataCenter: The data center where your account's data is hosted.
    • Realm: The name of the site you want to access.
    • Environment: Indicate whether you are connecting to a test or production environment (possible values are TEST or PRODUCTION).

    If you are connecting to the Supplier Data API or the Contract API, additionally set the following:

    • User: Id of the user on whose behalf API calls are invoked.
    • PasswordAdapter: The password associated with the authenticating User.

    If you're connecting to the Supplier API, set ProjectId to the Id of the sourcing project you want to retrieve data from.

    Authenticating with OAuth

    After setting connection properties, you need to configure OAuth connectivity to authenticate.

    • Set AuthScheme to OAuthClient.
    • Register an application with the service to obtain the APIKey, OAuthClientId and OAuthClientSecret.

      For more information on creating an OAuth application, refer to the Help documentation.

    Automatic OAuth

    After setting the following, you are ready to connect:

      APIKey: The Application key in your app settings. OAuthClientId: The OAuth Client Id in your app settings. OAuthClientSecret: The OAuth Secret in your app settings.

    When you connect, the provider automatically completes the OAuth process:

    1. The provider obtains an access token from SAP Ariba and uses it to request data.
    2. The provider refreshes the access token automatically when it expires.
    3. The OAuth values are saved in memory relative to the location specified in OAuthSettingsLocation.
    πŸ‘ Configuring a connection (Salesforce is shown)
  6. Click Save & Test
  7. Navigate to the Permissions tab and update user-based permissions
  8. πŸ‘ Updating permissions

Once the connection is established, SAP Ariba Source data is now accessible in CData Connect AI and ready to be used with MCP enabled tools.

Add a Personal Access Token

A Personal Access Token (PAT) is used to authenticate the connection to Connect AI from Flowise AI. It is best practice to create a separate PAT for each integration to maintain granular access control.

  1. Click the gear icon () at the top right of the Connect AI app to open Settings
  2. On the Settings page, go to the Access Tokens section and click Create PAT
  3. Give the PAT a descriptive name and click Create
  4. πŸ‘ Creating a new PAT
  5. Copy the token when displayed and store it securely. It will not be shown again

With the SAP Ariba Source connection configured and a PAT generated, Flowise AI can now connect to SAP Ariba Source data through Connect AI.

Step 2: Configure Connect AI credentials in Flowise AI

Log in to Flowise AI workspace to set up the integration.

Add OpenAI credentials

  1. Navigate to Credentials and choose Add Credential
  2. πŸ‘ Click Add credential
  3. Select OpenAI API from the dropdown
  4. Provide a name (e.g., OpenAI_Key) and paste the API key
  5. πŸ‘ Adding OpenAI credentials in Flowise

Add the PAT variable

  1. Navigate to Variables and Add Variable
  2. πŸ‘ Navigate to Variables
  3. Set Variable Name (e.g., PAT), choose Static as type, and set the Value to Base64-encoded username:PAT
  4. Click Add to save the variable
  5. πŸ‘ Adding PAT as variable in Flowise

Step 3: Build the agent in Flowise AI

  1. Go to Agent Flows, select Add New
  2. πŸ‘ Agent Flow page
  3. Click the "+" icon to add a new node and choose Agent and drag the agent to the workflow
  4. πŸ‘ Adding agent node in Flowise
  5. Connect the Start node to the Agent node
  6. πŸ‘ Connecting agent nodes in Flowise

Configure agent settings

Double-click on the Agent node and fill in the details:

  • Model: select ChatOpenAI or preferred model (e.g., gpt-4o-mini)
  • Connect Credential: Select OpenAI API key credential which was created earlier
  • Streaming: Enabled
πŸ‘ Fill in the details for Agent Node

Add the custom MCP tool

  1. Under Tools, click Add Tool and choose Custom MCP
  2. Fill in the JSON parameters as shown below:
 
{
 "url": "https://mcp.cloud.cdata.com/mcp",
 "headers": {
 "Authorization": "Basic {{$vars.PAT}}"
 }
}
πŸ‘ Configuring custom MCP tool in Flowise

Click the refresh icon to load available MCP actions. Once actions are listed, now Flowise agent is successfully connected to CData Connect AI MCP.

Step 4: Test and query live SAP Ariba Source data in Flowise

  1. Open the Chat tab in Flowise
  2. Type a query such as "Show top 10 records from SAP Ariba Source data table"
  3. Observe that responses are fetched in real time via the CData Connect AI MCP connection
  4. πŸ‘ Testing live queries in Flowise

With the workflow run completed, Flowise demonstrates successful retrieval of Salesforce data through the CData Connect AI MCP server, with the MCP Client node providing the ability to ask questions, retrieve records, and perform actions on the data.


Get CData Connect AI

To access hundreds of SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect AI today!