Altan
HomeDiscordStatus
HomeDiscordStatus
  1. Flows
  • What is Altan?
  • Apps
    • Create Your First App
    • App Navigation & Settings
    • Building Tips
    • The Art of Prompting
    • Add Media to Your App
    • Publishing Your App
    • Rollback and Checkpoints
    • Instantly Resolve Errors
  • Flows
    • Create your first Flow
    • Automation basics
    • Adding modules
    • Types of modules
    • Passing data
    • Filters
    • Debugging
    • Retrigger events
    • Version History
    • Overwrite connection
    • Task credits
  • Databases
    • Introduction
    • Records
  • AI Agents
    • What is an AI Agent?
    • Create your first AI Agent
    • Tools
    • Interacting with Your AI Agent
  • Integration
    • Magic Link
    • Altan Integrator
    • Create your integration
  • Creators
    • What is Altan Creators?
    • How it works
  • Get Support
    • Support Options
  1. Flows

Overwrite connection

In some workflows, you may encounter scenarios where the connection for a module needs to change dynamically. For example, in a workflow designed to send emails, you might want to send the email using a different authenticated account each time based on user input from a webhook request or another trigger.
This guide will show you how to overwrite the connection of a module in your workflow.

Step 1: Access the Connection Settings#

1.
Navigate to the workflow containing the module you wish to modify.
2.
Click on the connection dropdown for the module. You’ll find a button on the right side of the selected connection (as shown below).
image.png

Step 2: Enable Connection Overwrite#

When you click on the button, the Connection Overwrite settings will expand. Here’s what you’ll see:
Override Connection:
This allows you to dynamically set a connection for this module using variables or inputs from your workflow (e.g., data from a webhook or database).
If Override Not Found:
This option determines what happens if the provided connection is invalid or missing. You can choose from:
Exception: Stop the workflow execution and raise an error.
Default: Use the main connection configured for this module.
image.png

Example Use Case: Dynamic Email Sending#

Imagine a scenario where your workflow sends an email based on data received from a webhook. The webhook payload contains the authenticated email connection you want to use.
1.
In the Send Mail module:
Enable Connection Overwrite.
Map the Override Connection field to the variable from the webhook payload containing the connection ID.
2.
Choose the appropriate fallback behavior:
Use Exception if the workflow must stop when the connection is invalid.
Use Default to send the email using the main connection instead.

Benefits of Connection Overwriting#

Dynamic Behavior: Adapt workflows to use different authenticated accounts dynamically without hardcoding multiple modules.
Error Handling: Control fallback behavior with precision, ensuring workflows run reliably.
Customizability: Tailor workflows to meet complex, user-specific scenarios like multi-user email handling, personalized communication, or account-specific actions.
By leveraging this feature, you can create more flexible and powerful workflows that adapt dynamically to input data and specific use cases. 🎉
Modified at 2024-11-29 20:47:20
Previous
Version History
Next
Task credits
Built with