Skip to main content

Data

API Request​

This component sends HTTP requests to the specified URLs.

Use this component to interact with external APIs or services and retrieve data. Ensure that the URLs are valid and that you configure the method, headers, body, and timeout correctly.

Parameters​

Inputs​

NameDisplay NameInfo
URLsURLsThe URLs to target
curlcurlPaste a curl command to fill in the dictionary fields for headers and body
MethodHTTP MethodThe HTTP method to use, such as GET or POST
HeadersHeadersThe headers to include with the request
BodyRequest BodyThe data to send with the request (for methods like POST, PATCH, PUT)
TimeoutTimeoutThe maximum time to wait for a response

Directory​

This component recursively loads files from a directory, with options for file types, depth, and concurrency.

Parameters​

InputTypeDescription
pathMessageTextInputPath to the directory to load files from
typesMessageTextInputFile types to load (leave empty to load all types)
depthIntInputDepth to search for files
max_concurrencyIntInputMaximum concurrency for loading files
load_hiddenBoolInputIf true, hidden files will be loaded
recursiveBoolInputIf true, the search will be recursive
silent_errorsBoolInputIf true, errors will not raise an exception
use_multithreadingBoolInputIf true, multithreading will be used
OutputTypeDescription
dataList[Data]Loaded file data from the directory

File​

The FileComponent is a class that loads and parses text files of various supported formats, converting the content into a Data object. It supports multiple file types and provides an option for silent error handling.

Parameters​

Inputs​

NameDisplay NameInfo
pathPathFile path to load.
silent_errorsSilent ErrorsIf true, errors will not raise an exception.

Outputs​

NameDisplay NameInfo
dataDataParsed content of the file as a Data object.

URL​

The URLComponent is a class that fetches content from one or more URLs, processes the content, and returns it as a list of Data objects. It ensures that the provided URLs are valid and uses WebBaseLoader to fetch the content.

Parameters​

Inputs​

NameDisplay NameInfo
urlsURLsEnter one or more URLs

Outputs​

NameDisplay NameInfo
dataDataList of Data objects containing fetched content and metadata

Gmail Loader​

This component loads emails from Gmail using provided credentials and filters.

For more on creating a service account JSON, see Service Account JSON.

Parameters​

InputTypeDescription
json_stringSecretStrInputJSON string containing OAuth 2.0 access token information for service account access
label_idsMessageTextInputComma-separated list of label IDs to filter emails
max_resultsMessageTextInputMaximum number of emails to load
OutputTypeDescription
dataDataLoaded email data

Google Drive Loader​

This component loads documents from Google Drive using provided credentials and a single document ID.

For more on creating a service account JSON, see Service Account JSON.

Parameters​

InputTypeDescription
json_stringSecretStrInputJSON string containing OAuth 2.0 access token information for service account access
document_idMessageTextInputSingle Google Drive document ID
OutputTypeDescription
docsDataLoaded document data

This component searches Google Drive files using provided credentials and query parameters.

For more on creating a service account JSON, see Service Account JSON.

Parameters​

InputTypeDescription
token_stringSecretStrInputJSON string containing OAuth 2.0 access token information for service account access
query_itemDropdownInputThe field to query
valid_operatorDropdownInputOperator to use in the query
search_termMessageTextInputThe value to search for in the specified query item
query_stringMessageTextInputThe query string used for searching (can be edited manually)
OutputTypeDescription
doc_urlsList[str]URLs of the found documents
doc_idsList[str]IDs of the found documents
doc_titlesList[str]Titles of the found documents
DataDataDocument titles and URLs in a structured format

Webhook​

This component defines a webhook input for the flow. The flow can be triggered by an external HTTP POST request (webhook) sending a JSON payload.

If the input is not valid JSON, the component will wrap it in a "payload" field. The component's status will reflect any errors or the processed data.

Parameters​

Inputs​

NameTypeDescription
dataStringJSON payload for testing the webhook component

Outputs​

NameTypeDescription
output_dataDataProcessed data from the webhook input

Hi, how can I help you?