Rainbird
  • 🏃‍♂️Getting started
    • What is Rainbird?
    • How does Rainbird work?
    • Example use cases
      • 📈Investment suitability assessment
      • 🤖Digital tax consultant
      • 🏥Covid risk assessment
      • 🚗Insurance claims liability
      • 💰Fraud identification
    • Hosting options
    • Quickstart guide
    • Onboarding with Rainbird
  • 🧠Knowledge Modelling
    • What is knowledge modelling?
    • What is a query?
    • Modelling
      • Concepts
        • Concept instances
      • Relationships
        • Question Configuration
        • Rules
          • Match, Infer, Ask process
          • Expressions List
      • Facts
      • Datasources
      • Other features
        • Markdown
        • Import/Export Knowledge Maps
      • Troubleshooting Tips
    • Testing
      • Manual tests
      • Automated tests
      • External User Acceptance Testing (UAT)
    • Versioning
    • Publishing
      • API Management
      • Setting a live version
      • Publishing an agent
    • Stats and Reporting
    • Managing your data
    • The library
      • How to: update a template
  • 🔍Evidence
    • What is evidence?
    • The Evidence Tree
      • The Salience Chart
  • 👩‍💻Developer guides
    • Overview
    • API Guide
      • API request flow
      • Run example queries
      • Environments
      • Error codes
      • Skipping an answer to a question
      • Retrieving a full Evidence Tree for use with a custom UI or application
      • Building an Evidence Tree URL
    • API interactive documentation
    • SDKs
  • Rainbird Labs
    • Overview
    • Consult
    • Generate from documentation
    • Co-author
    • /interact
    • /explain
Powered by GitBook
On this page
  • URL Structure
  • Hostname
  • Fact ID
  • Session ID
  • Evidence Security
  1. Developer guides
  2. API Guide

Building an Evidence Tree URL

Last updated 1 year ago

Within the Rainbird Studio access is provided to a visual representation of the .

Whilst this is designed primarily for Rainbird Authors, rather than end-users, some clients wants to store a link to the Evidence Tree alongside query results within their own systems for audit purposes.

Where this is necessary Evidence Tree URL can be programmatically built with the following data:

  • URL structure

  • Hostname

  • Fact ID

  • Session ID

URL Structure

The Evidence Tree app URL is structured as follows:

[STUDIO_HOSTNAME]/evidence:id=[FACT_ID]&api=[API_HOSTNAME]&sid=[SESSION_ID]

Hostname

The following details the Studio and API hostname for some of our environments:

Environment
Studio hostname
API hostname

Community

https://app.rainbird.ai

https://api.rainbird.ai

Enterprise (UK & Europe)

https://enterprise.rainbird.ai

https://enterprise-api.rainbird.ai

Enterprise (South America)

https://sa-enterprise.rainbird.ai

https://sa-enterprise-api.rainbird.ai

Example private environment

https://clientname.rainbird.ai

https://clientname-api.rainbird.ai

An example for Enterprise (UK & Europe) would be:

https://enterprise.rainbird.ai/evidence?id=[FACT_ID]&api=https://enterprise-api.rainbird.ai&sid=[SESSION_ID]

Fact ID

The ID used to fetch the evidence tree that lead to this decision. Received in the resultResponse for each object in the result array. i.e. if there are multiple results to a query, there will be a Fact ID for each result.

Session ID

The ID for the session in which the results are provided. Received from the /start request.

Evidence Security

In order to ensure the Evidence Tree can be accessed via the URL a method to pass the evidence key in the header needs to be established, or link sharing needs to be enabled.

Further information on this can be found in the section.

👩‍💻
Evidence Tree
Evidence Tree