Utlizing API Tool with Elephas Workflows

API Tool Setup in Elephas Workflows.

Getting Started with the API Tool in Elephas

 

The API Tool in Elephas Workflows helps users integrate external APIs easily. Users can make GET and POST requests to specific API URLs. They can also use the API Tool alongside other Agent tools in Elephas.

For Example: Imagine you want to create a workflow that provides users with real-time weather updates based on their location. Follow these steps to implement this using the API Tool:

Step-by-Step Implementation for GET Operation

Step 1: In your Elephas workflow, Select the API Tool.

Notion image
 

Step 2: Use a weather API such as OpenWeatherMap.

Notion image
 

Step 3: Select GET as you want to retrieve data.

Notion image

Step 3: Create an AI Agent to Generate the output as a list.

Notion image
 

Step 4: Trigger the API Workflow From the Super Chat. For detailed information on how to trigger workflow, view this comprehensive guide.

Notion image
 

Similarly, you can post to API endpoints.

Step-by-Step Implementation for POST Operation

 

Step 1: In your Elephas workflow, select the API Tool and choose POST as the method.

Notion image
 

Step 2: Define the Request Body

If the API requires specific headers (like Content-Type or Authorization), make sure to include them
Notion image
 

Step 3: Trigger the API Workflow From the Super Chat to send data to external APIs using POST requests.

Notion image
 

Need help? We're Here for You!

Contact us in support@elephas.app.

 
Did this answer your question?
😞
😐
🤩