How to automate Langflow using an Axiom.ai automation
Langflow (opens new window) is a powerful tool that can be used to bring agents into your workflows. Triggering your workflows using your Axiom.ai automations gives you the opportunity to pass additional data in to use within your workflow - such as scrape data or data from Google Sheets.
# Getting started
To get started, we will assume that you have an Axiom.ai account, and a Langflow account.
From Axiom.ai, you'll need the following information
- API key - The API key is found on the dashboard.
- Automation name - The name of the automation to trigger.
- Endpoint - The current endpoint is
https://lar.axiom.ai/api/v3/trigger.
# Triggering an Axiom.ai automation using Langflow
In order to trigger your Axiom.ai automation from your workflow, complete your workflow as usual, when you're ready to trigger your automation, continue this guide.
Within your workflow, search for and add an "API Request" component to your workflow. You'll need to configure it as such:
- URLs - This should be the endpoint from above.
- Method - Change to
POST. - Headers - Click "Edit Headers", click the "+" icon and add one property, as follows:
{
"Content-Type": "application/json"
}
- Body - The data that you would like to send your automation, this should consist of a JSON payload. This should be formatted as per our trigger guide.
To accept this data within your Axiom.ai automation, follow the steps below:
- Receive data from another app - Add a Receive data from another app step to your automation.
- Configure - The "Test data" field should be used to replicate the data within the
dataportion of the payload.
# Testing your workflow
Run your workflow to begin testing - a chat window should open to run your workflow. Observe any errors that you see within your work and consult their documentation for more details on resolving the errors.
If there are any errors on Axiom.ai's side, follow the instructions provided or see common errors for more details.
# Wrapping up
Langflow can be a great method of adding additional AI features into your workflows, including connecting data from services from the integration library that Langflow offers. We look forward to hearing about what you create with this!