Phonely Jvj4r7lrpi

No results

Help CenterWorkflowsLive ActionsAPI Request

API Request

Last updated August 18, 2024

How to use Multiple API Requests In a Workflow

The API Request block allows you to integrate external services, such as appointment scheduling systems, into your Phonely workflow.

Example Setup

1. Start Flow:
Condition: Someone wants to schedule an appointment

2. Multi-Ask Block:
Question 1:
Name: name
Type: text
Question: What's your name?

Question 2:
Name: email
Type: email
Question: Get email address

Question 3:
Name: phone
Type: phone
Question: Get phone number

3. Question Block:
Name: schedule_method
Type: multiple_choice
Question: How would you like to schedule the appointment?
Options:
- Over the phone
- Send a text message with a link

4. API Request Block (if "Over the phone" is selected):
Method: POST
URL: https://your-api-endpoint.com/schedule
Headers:
  Authorization: Bearer your_api_key_here
Body:
{
  "name": "{{Answer to name}}",
  "email": "{{Answer to email}}",
  "phone": "{{Answer to phone}}"
}

Key Features

  • Make POST or GET requests to external APIs
  • Include dynamic data from previous blocks in your request
  • Use authentication headers for secure API calls
  • Chain multiple API requests together

Tips for API Integration

  1. Ensure your API endpoint is secure and can handle the expected request volume.
  2. Handle potential API errors gracefully in your workflow.
  3. Test your API integration thoroughly before deploying.

Advanced Usage

  • Use the response from one API call in subsequent API requests or workflow decisions.
  • Implement error handling and retry logic for more robust integrations.
  • Consider using webhooks for asynchronous processes that may take longer to complete.

For more detailed information and support, visit the Phonely Help Desk at  help.phonely.ai . If you need additional assistance, contact the Phonely support team at support@phonely.ai.

Was this article helpful?