Compartilhar via


LegalBot AI Tools (Preview)

Provides API access to Artificial Intelligence, NLP, Machine Translation and more. Specially designed AI and NLP functions for legal industry

This connector is available in the following products and regions:

Service Class Regions
Logic Apps Standard All Logic Apps regions except the following:
     -   Azure Government regions
     -   Azure China regions
     -   US Department of Defense (DoD)
Power Automate Premium All Power Automate regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Power Apps Premium All Power Apps regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Contact
Name LegalBot.io Support
URL https://legalbot.io/crm
Email support@legalbot.io
Connector Metadata
Publisher LegalBot.io
Website https://legalbot.io
Privacy policy https://legalbot.io/privacy.html
Categories AI;website

LegalBot AI Tools gives you instant access to AI tools to analyse and review your documents using machine learning and NLP. The following actions are supported:

  • Document similarity with NLP: Compares how similar two documents are using NLP. You can easily customise your AI model by changing the input parameters.

  • Top Keywords: Extracts and returns the top keywords from a document. You can easily customise your AI model by changing the input parameters.

  • Translate document: uses machine translation to translate a document from the source language to the target language.

  • Translate text: uses machine translation to translate text from the source language to the target language.

Prerequisites

To use this connector you must have an API Subscription Key.

How to get credentials?

You can sign up for an account and a purchase a subscription or a credits package from this page LegalBot.io/ai-tools/. You will be given an API Subscription Key once sign up and purchase is completed.

Known issues and limitations

  • Before sending documents the file content must be converted to Base64 string format. This can be done using the base64() expression
  • Files can be in HTML, PDF, .docx, .doc, .odt, .rtf, .xlsx, .xls, .csv or .txt format
  • The language combinations available for machine translation are set out here.
  • There is a 50,000,000 character limit for translate text
  • Text in content controls and fields in MS Word documents are not translated. We recommend removing these before sending for translation, see this link for instructions.
  • It is not possible to process documents / files which have security enabled (passwords or Azure Security).

Creating a connection

The connector supports the following authentication types:

Default Parameters for creating connection. All regions Not shareable

Default

Applicable: All regions

Parameters for creating connection.

This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.

Name Type Description Required
API Key securestring The API Key for this api True

Throttling Limits

Name Calls Renewal Period
API calls per connection 100 60 seconds

Actions

Document Similarity NLP

Calculates the similarity of two documents using Natural Language Processing

Top Keywords

Extracts and returns the top N keywords from a document.

Translate Documents

Translates file content from source language to target language.

Translate Text

Translates text from target language to source language

Document Similarity NLP

Calculates the similarity of two documents using Natural Language Processing

Parameters

Name Key Required Type Description
Clean text
clean True boolean

If set to true the text to be analyzed will be cleaned from punctuation, excessive white space and turned into lower case according to LegalBot.io model

Use stop words
use_stopwords True boolean

If set to true the text will be processed to remove words which do not contain important significance

Stop word model
stop_word_model True string

The LegalBot.io custom stop word model to use when processing the document.

Custom stop words
user_defined_stopwords string

User specific stop words to remove from the string. Each word separated by comma.

Lemmatize string
lemmatize True boolean

If set to true each word will be processed to change the word to its root word or lemma e.g. runs, running, ran = run

Stem string
stemming True boolean

If set to true each word will be processed to the word to its stem word e.g. intelligent = intellig

Exclude short words
exclude_words_shorter_than integer

Excludes words from analysis if their string length is shorter than number specified

File Content 1
fileContent True string

File content of the first document. File can be in HTML, PDF, .docx, .doc, .odt, .rtf or .txt format. File must be converted to Base64 string format.

File name 1
name True string

The name of the first file

File Content 2
fileContent True string

File content of the second document. File can be in HTML, PDF, .docx, .doc, .odt, .rtf or .txt format. File must be converted to Base64 string format.

File Name 2
name True string

The name of the second file

Returns

Top Keywords

Extracts and returns the top N keywords from a document.

Parameters

Name Key Required Type Description
Clean text
clean True boolean

If set to true the text to be analyzed will be cleaned from punctuation, excessive white space and turned into lower case according to LegalBot.io model

Use stop words
use_stopwords True boolean

If set to true the text will be processed to remove words which do not contain important significance

Stop word model
stop_word_model True string

The LegalBot.io custom stop word model to use when processing the document.

Custom stop words
user_defined_stopwords string

User specific stop words to remove from the string. Each word separated by comma.

Number of keywords
num_keywords True integer

The number of keywords to return

Keyword model
key_word_model True string

The NLP keyword extraction model to use. "word" or "noun" keywords

Exclude short words
exclude_words_shorter_than integer

Excludes words from analysis if their string length is shorter than number specified

File content
fileContent True string

File content of the first document. File can be in HTML, PDF, .docx, .doc, .odt, .rtf or .txt format. File must be converted to Base64 string format.

File name
name True string

The name of the file

Returns

Translate Documents

Translates file content from source language to target language.

Parameters

Name Key Required Type Description
Source language
source_language True string

The source language of the document. Language codes follow ISO 639-1 Code two letter format other than Chinese simplified: zh-Hans and Chinese traditional: zh-Hant. Source language may be in Auto. It is also possible to write the English version of the name e.g. English, German, French, Russian. It is possible to specify Auto as a value.

Target language
target_language True string

The target language you want the document translated into. Language codes follow ISO 639-1 Code two letter format other than Chinese simplified: zh-Hans and Chinese traditional: zh-Hant. Source language may be in Auto. It is also possible to write the English version of the name e.g. English, German, French, Russian.

File content
fileContent True string

The file content of the document in Base64 string format. The file can be in HTML, PDF, .docx, .doc, .odt, .rtf, .txt, .pptx, .ppt, .xlsx format.

File name
name True string

The name of the file with extension

Returns

Translate Text

Translates text from target language to source language

Parameters

Name Key Required Type Description
Target language
target_language True string

The target language to translate the text into. Language codes follow ISO 639-1 Code two letter format other than Chinese simplified: zh-Hans and Chinese traditional: zh-Hant. Source language may be in Auto. It is also possible to write the English version of the name e.g. English, German, French, Russian

Source language
source_language True string

The source language of the text. Language codes follow ISO 639-1 Code two letter format other than Chinese simplified: zh-Hans and Chinese traditional: zh-Hant. Source language may be in Auto. It is also possible to write the English version of the name e.g. English, German, French, Russian. It is possible to specify Auto as a value.

Text to translate
text_to_translate True string

This is the text you want translated

Returns

Definitions

Receive document translation request

Name Path Type Description
message
message string
document_link
document_link string
transactionID
transactionID string
fileName
fileName string
credits_used
credits_used integer
credits_remaining
credits_remaining integer
insufficient_credits
insufficient_credits boolean

Receive NLP keywords

Name Path Type Description
message
message string
top_keywords
top_keywords array of string
transactionID
transactionID string
credits_used
credits_used integer
credits_remaining
credits_remaining integer
insufficient_credits
insufficient_credits boolean

Receive translated text

Name Path Type Description
message
message string
transactionID
transactionID string
TranslatedText
TranslatedText string
credits_used
credits_used integer
credits_remaining
credits_remaining integer
insufficient_credits
insufficient_credits boolean

Receive NLP document similarity

Name Path Type Description
message
message string
similarity
similarity number
transactionID
transactionID string
text_analysed
text_analysed string
credits_used
credits_used integer
credits_remaining
credits_remaining integer
insufficient_credit
insufficient_credit boolean