JetNet Tool icon

JetNet Tool

Access JetNet aviation data for AI Agents

Overview

This node provides access to JetNet's comprehensive aviation industry data, specifically for the Company resource with the Get List operation. It allows users to retrieve a list of companies from the JetNet database based on optional filtering criteria such as company ID, name, parent company ID, company type, and business type.

Typical use cases include:

  • Fetching a filtered list of aviation-related companies for market research or analysis.
  • Integrating company data into workflows that require up-to-date aviation company information.
  • Automating retrieval of company lists for reporting or data enrichment purposes.

Example: Retrieve all companies matching certain business types or belonging to a specific parent company to analyze their relationships or market presence.

Properties

Name Meaning
Tool Description Choose how to set the tool description:
- Set Automatically: Description is set based on resource and operation.
- Set Manually: User provides a custom description explaining what the tool does.
Description (Shown only if "Set Manually" is selected) A string describing the tool’s purpose, helping language models understand its function better. Default: "Access JetNet aviation industry data including aircraft specifications, company information, contact details, and market intelligence".
Resource The type of aviation data to access. For this node, fixed to Company.
Operation The action to perform on the resource. For this node, fixed to Get List, which retrieves a list of companies.

Input parameters used internally for the Get List operation on Company (not exposed directly in properties but relevant for API request):

  • companyId (number, default 0): Filter by company ID.
  • companyName (string, default empty): Filter by company name.
  • parentId (number, default 0): Filter by parent company ID.
  • companyType (string, default empty): Filter by company type.
  • businessType (string, default empty): Filter by business type.

Output

The node outputs a JSON object with the following structure:

{
  "success": true,
  "resource": "company",
  "operation": "getList",
  "data": [ /* array of company objects returned by JetNet API */ ],
  "timestamp": "2024-06-xxTxx:xx:xx.xxxZ"
}
  • success: Boolean indicating if the API call was successful.
  • resource: The resource queried ("company").
  • operation: The operation performed ("getList").
  • data: An array containing company records retrieved from JetNet.
  • timestamp: ISO timestamp of when the response was generated.

If an error occurs, the output will be:

{
  "success": false,
  "error": "Error message describing the problem",
  "resource": "company",
  "operation": "getList",
  "timestamp": "2024-06-xxTxx:xx:xx.xxxZ"
}

No binary data output is produced by this node.

Dependencies

  • Requires an active JetNet API credential with a valid security token and bearer token for authentication.
  • The node makes HTTP requests to the JetNet API endpoint at https://customer.jetnetconnect.com.
  • Proper configuration of the API credentials within n8n is necessary for successful execution.

Troubleshooting

  • Missing Company ID Error: If the operation requires a company ID and it is not provided, the node throws an error like "Company ID is required for this operation". Ensure the input includes a valid company ID where applicable.
  • Unknown Operation or Resource: Errors such as "Unknown company operation: ..." or "Unknown resource: ..." indicate unsupported operations or resources. Verify that the selected operation and resource are valid.
  • Authentication Failures: If API credentials are invalid or expired, requests will fail. Check and update the JetNet API credentials in n8n.
  • Network Issues: Connectivity problems to the JetNet API endpoint can cause timeouts or failures. Confirm network access and endpoint availability.

Links and References

Discussion