Swift Flow Integrations
Swift Flow Integration is a powerful, no-code + AI engine that enables seamless data mapping and automation across workflows and disparate systems. It allows you to connect and map data across diverse Swift Channels, ensuring smooth communication within Swift apps and with external applications and systems, all from a unified integration experience.
Interface Overview
Upon navigating to Design Studio > Swift Flow > Integrations, you will find a centralized dashboard managed by three main sections:
Left Sidebar (The Connector Library): Categorizes your connection points into Connectors (ERP/CRM), Databases, REST APIs, Swift Objects, and SFTP Connections.
Top Toolbar: Provides global actions including search, manual refresh, Create Integration, and Import.
Integration Cards: Displays a summary of your existing integrations, including their status (Active/Inactive), modification history, and quick actions such as edit, clone, delete, export, access revision history, and view execution logs.
Creating a New Integration
To begin, click the + Create Integration button. This opens a guided wizard with four primary stages:
When creating a new integration in Swift Flow, the Attributes section acts as the "logic toggle" for your workflow. Depending on which boxes you check, the system will add or remove steps from the configuration wizard.
Choosing these attributes first is highly recommended, as changing them halfway through the configuration may reset your progress in the "Post Data" or "Output" mapping steps.
Understanding the Global Attributes
At the top of the interface, several checkboxes control the overall behavior of the integration:
Send data to source system: If unchecked, the integration is a "dry run" and will not actually push data to the external API.
Disable Post Data: Bypasses the mapping stage for direct data forwarding.
Customize Output: Enables the selectable checkbox tree in the final stage.
Customize Your Mapping: Switches the Post Data stage from a table view to a raw JSON editor.
Step 1: Define Input
The Define Input stage acts as the "Contract" for the action. It tells Swift exactly what data to expect before the integration can proceed.
Format Template: You provide a sample JSON structure that represents the data coming into the integration.
Schema Generation: Swift automatically parses your sample JSON and creates a Root Tree (visible on the right). This allows you to verify that the system understands the data hierarchy.
Variable Creation: By defining input here, you create dynamic variables that can be used later in the mapping process using curly braces {}.
Step 2: Channel
The Channel stage defines the destination; it's the "Where" and the "What" of the API call. The interface for the Channel stage changes dynamically depending on the Channel Type selected.
Connectors: When selecting a Connector, an Authentication section appears at the top. This allows you to define the user context for generating the integration token:
Use Channel User: Uses the default credentials of the selected Channel.
Use Proxy User: Allows selection of a specific service account from dropdown.
Use End User Credential: Uses the credentials of the user currently logged into Swift.
Targeting & Advanced Logic
Define the exact target using Application Name, Form Name, and Version.
Specify the Action and Action ID.
Use the Configuration link to access the AppStack modal for advanced CRUD or Grid logic.
Databases (e.g., SQL Server)
Standard Mode: Select the Database, Table, and Operation Type (Insert, Update, etc.).
Query Mode (Write Query): Check the "Write Query" box to open a Query Editor.
Variables: Define Key/Value pairs to be used inside your SQL. Use @ in the value field to access dynamic source variables.
Channels: Select the specific integration service you want to use (e.g., Shopify GraphQL Admin API).
Collections: Choose the specific operation available within that service (e.g., GraphQL Get Orders).
Endpoint Visualization: Swift displays the exact URL that will be pinged (e.g., a specific Shopify API version URL).
Execution Method: This allows you to define the nature of the call, such as a Search, Create, or Update operation.
Step 3: Post Data (Data Mapping)
Post Data is the most critical stage, where you translate your Swift data into the format required by the external system. This tab behaves differently based on your selected Attributes:
Standard Mapping: By default, you use a table to map a Source record field (the external key) to a Value (your data).
Use @ to access internal Swift Object fields.
Use {} to inject dynamic data from the "Define Input" step.
Custom Mapping (Raw JSON): If you enable "Customize Your Mapping," the UI provides a raw code editor. This is essential for complex, deeply nested JSON payloads that a standard table cannot handle.
Direct Forwarding: If you enable "Disable Post Data," this tab is bypassed. The system assumes the data from "Define Input" is already perfect and sends it to the source system without any changes.
Step 4: Output
The Output stage handles the response from the external system, ensuring your Swift app only receives the information it needs.
Response Simulation: You can paste a sample JSON response from previous action logs into the editor.
Path Selection: Swift generates a checkbox tree of the response JSON. You simply check the specific fields you want to "keep" (e.g., id, message, or status).
Data Filtering: If "Customize Output" is disabled, the system returns the entire raw response. Enabling it allows you to filter out API clutter, making your downstream workflows cleaner and faster.
Link Swift Integration with Swift Flow Action
The next step involves linking this integration with a workflow action
Upon executing the workflow, the provided message will seamlessly transmit to the external system, ensuring a streamlined and efficient integration process.
Configuring SFTP Connections
If your integration requires file-based transfers, you must set up an SFTP connection via the More > Create SFTP Connection dropdown.
Required Fields
Host & Port: (Default port is 22).
Protocol: Select SFTP or FTP.
Authentication: Provide the Username and either a Password or an Authentication Key.
Test Connection: Always use the "Test Connection" button to verify credentials before saving.
Managing Existing Integrations
Each integration card provides several quick-action tools:
Status Indicator: Shows Active (green) or Inactive (red). To toggle this, you must edit the integration settings.
Action Icons (Left to Right):
Run: Manually trigger the integration.
Duplicate: Clone the integration to use as a template.
Download: Export the integration configuration.
Info: Open the log search interface to find specific transaction data.
History: View the audit trail of all executions and manage version history.
Delete: Permanently remove the integration.
Monitoring and Troubleshooting (Logs)
Use the Info icon to search through complex execution data.
Search Logs: Use the Label (your defined key), an Operator (e.g., =), and a Value to find a specific transaction.
Configure Search Options: This is essential for making your workflow logs searchable by specific business data (like Order IDs or error messages).
To make troubleshooting more efficient, you can define specific data points within your workflow as searchable criteria in the logs. Click Configure Search Options from the Log viewer to open this interface.
The system allows you to map searchable keys across three distinct stages of the data flow:
Incoming Data
Define the raw data structure being received by the workflow.
By pasting a JSON template (e.g., containing Order and line details), the system generates a list of available Keys. Checking a box next to a key makes that specific field searchable in the main log dashboard.
2. Request
Map the data exactly as it is formatted when sent to the external integration. This is useful for searching logs based on the final payload sent to a third-party API or database, ensuring you can find transactions even if the internal variable names differ from the source data.
3. Output
Define keys based on the response received from the target system. Mapping fields like isError, message, or url allows you to quickly filter logs for specific error types (e.g., searching for "Internal Server Error") or to find transactions associated with a specific endpoint.
How to Apply Search Criteria:
Template: Paste a sample JSON payload in the left-hand pane to define the structure.
Keys: Select the specific checkboxes in the right-hand tree view to "register" these fields as search filters.
Submit: Once saved, these keys will appear in the Label dropdown menu within the Search Logs utility, allowing you to filter hundreds of log entries by real-time data values.
Version Control & Rollbacks: The "History" icon
The History icon tracks every change made to an integration, providing a built-in safety net.
Audit Trail: View which admin updated the integration and when. Every "Update" or "Create" action is logged as a new version (e.g., v1.1).
Reverting to a Previous Version:
Find a stable older version in the table.
Click the Revert icon (circular arrow).
Toggle the "Yes, I understand" safety switch. This ensures rollbacks aren't done by accident.
Click Revert to make that older version the Active configuration again.
When updating an integration, always include an Audit Comment. This allows your team to see the reason for a version change (e.g., "Updated mapping for new API field") directly in the History table without needing to inspect the code.