Altan
HomeDiscordStatus
HomeDiscordStatus
  1. Integration
  • What is Altan?
  • Support Options
  • Projects
    • Create Your First Project
    • App Navigation & Settings
    • Building Tips
    • The Art of Prompting
    • Publishing Your App
    • Rollback and Checkpoints
    • Instantly Resolve Errors
  • Databases
    • Introduction
    • Security
    • Technical Overview
  • AI Agents
    • What is an AI Agent?
    • Create your first AI Agent
    • Tools
    • Interacting with Your AI Agent
    • Technical Overview
    • Altan Frontend SDK
      • Altan Frontend SDK
  • Flows
    • Create your first Flow
    • Automation basics
    • Adding modules
    • Types of modules
    • Passing data
    • Filters
    • Debugging
    • Retrigger events
    • Version History
    • Overwrite connection
    • Task credits
  • Integration
    • Magic Link
    • Altan Integrator
    • Create your integration
  • Authentication
    • Authentication
  • Payments
    • Checkout Session
    • Object Storage
  • Media
    • Media
  • Partner Program
    • Who are our Partners?
    • Partner Program Benefits
    • How to import projects into Altan
    • How to export projects from Altan
    • Work collaboratively
    • How to start on Altan
    • Become an Altan Partner
  • API Reference
    • account
      • Create Account
      • Get Account Gq
      • Get Account Public
      • Get Account Usage
      • Patch Account
      • Delete Account
      • Get Account Users
      • Create Custom Webhook
      • Create Media
      • Create Media From Url
      • Create Multiple Media
      • Create Token
      • Create Agent
      • Upsert Flow
      • Fetch User Account Notifications
      • Create Altaner
      • Get Selected Template Version
      • Get Latest Template Version
      • Get Template Version
      • Invite User
      • Create Interface
      • Get Members
      • Get Account Connections
      • Get Apikey
      • Delete Apikey
    • project
      • Get Altaner
      • Create Project V2
      • Update Altaner
      • Delete Altaner
      • Get Altaner Flows
      • Clone Altaner
      • Update Altaner Positions
      • Create Altaner Component
      • Update Altaner Component
      • Get Altaner Component
      • Atomic Update Altaner Component
      • Delete Altaner Component
      • Duplicate Altaner
      • Create Idea
    • interface
      • Start Dev Server
      • Get Dev Status
      • Send Dev Error To Agent
      • Revise Interface
      • Get Dev Errors
      • Log Error
      • Create Or Overwrite File
      • Update File
      • Create Multiple Files
      • Read File
      • Read Multiple Files
      • Delete File
      • Rename File
      • Update Files Pattern
      • Search In Files
      • Search And Replace
      • Preview Updates
      • Install Libraries
      • List Tree
      • List Tree Json
      • Get Repo Status
      • List Branches
      • Create Branch
      • Delete Branch
      • Switch Branch
      • Clone Repo
      • Merge Branch
      • Commit Changes
      • Get Diff Changes
      • Accept Changes
      • Discard Changes
      • Push Changes
      • Pull Changes
      • Reset Repo
      • Get Repo Log
      • Restore Main
      • Get Public Interface
      • Get Interface By Name
      • Get Interface
      • Update Interface
      • Delete Interface
      • Get Interface Screenshot
      • Update Interface With Ai
      • Publish Interface
      • Vercel Webhook
      • Get Deployment Status
      • Add Collaborator
      • Get Deployment Logs
      • Fix Deployment With Ai
      • Add Domain
      • Get Domains
      • Remove Domain
      • Verify Domain
      • Add Env Variables
      • Get Env Variables
      • Delete Env Variable
      • Sync Env Variables
      • Rollback Deployment
      • Get Commit Details
      • Restore To Commit
    • flows
      • modules
        • Fetch Module
        • Update Flow Module
        • Delete Module
        • Fetch Graph Module
        • Rename Module
        • Update Position In Canvas
        • Update In Edge Filter
        • Update Route Condition Filter
        • Add Condition
        • Get Available Variables For Mappings
      • hooks
        • Get Webhook
        • Update Hook
      • executions
        • Get File Signed Url
        • Stream Execution
      • Fetch Flow Execution
      • Fetch Flow
      • Update Flow
      • Delete Flow
      • Get Latest Execution
      • Fetch Flow Schema
      • Get Flow From Hook
      • Get Flow Hook
      • Fetch Flow Executions
      • Fetch Flow Executions
      • Upsert Flow Module
      • Add Flow Module
      • Create Flow Duplicate
      • Clone Flow Modules
      • Paste Flow Modules
      • Delete Modules
      • Update Edge
    • media
      • Get Media Url
      • Delete Media
      • Get Multiple Media
      • Get 3D Media
      • Delete Model
      • Create 3D Model
    • agents
      • tools
        • Patch Tool
        • Patch Tool
      • authorizaiton requests
        • Create Authorization Request
        • List Authorization Requests
        • Get Authorization Request
        • Delete Authorization Request
        • Reject Authorization Request
      • Get Altan Agents
      • List Voices
      • Get Agent
      • Update Agent
      • Delete Agent
      • Get Agent
      • Create And Add Tool To Agent
      • Remove Tool And Space
      • Get User Agent Dm Room
      • Get Agent Gate
      • Get Agent Member Usage
  1. Integration

Create your integration

Welcome to the comprehensive guide on building your own integration with Altan. If you haven’t yet, it’s highly recommended that you first read the Altan Integrator Overview to familiarize yourself with the key concepts like External Apps, Connection Types, Action Types, Resource Types, and Webhooks.
This guide will walk you through every step of creating a custom integration, from defining apps to setting up API calls and resources.

🛠 Step-by-Step Guide to Creating Your Integration#

Integrating third-party apps into Altan involves two key steps:
1.
Creating a Custom App.
2.
Configuring the app using the Integration Creator or manually in the editor.

1️⃣ Create a Custom App#

Navigate to the Custom Apps Tab#

1.
Go to the Custom Apps tab in the Integration section of Altan.
2.
Click Create Custom App to start.
image.png

Define the App Details#

Name: Enter a meaningful name for your app, e.g., "Facturit."
Description: Provide a short explanation of what the app does, e.g., "Handles invoice parsing and uploads to spreadsheets."
Icon URL: Paste the URL of the app’s icon.

Automatic Setup#

Clicking Create will automatically generate:
A new External App entry.
A Connection Type linked to the app.
Note: Currently, each app can only have one connection type. All the logic (authentication, actions, resources, and webhooks) will reside within this connection type.
Once created, your app will appear in the Custom Apps list. Double-click on the app to enter the App Editor, where you can configure the connection type.

2️⃣ Configure Your Connection Type#

From the App Editor, you can manually configure the following components:
image.png

Authentication#

Define how users will authenticate with the app. Altan supports various authentication methods such as OAuth, API Keys, and Basic Authentication. These are set at the Connection Type level.

Actions#

Actions define the API calls the app can make. For example:
Sending emails.
Fetching data from an external system.
Submitting forms.

Resources#

Resources represent the structured data returned by an API call or required as input. For example:
A JSON object representing an invoice.
A response object containing user data.

Webhooks#

Webhooks allow real-time updates by notifying Altan of specific events in the external app (e.g., "new email received" or "file uploaded").

3️⃣ Use the Integration Creator for Easier Setup#

The Integration Creator simplifies the process of defining actions and resources. Here’s how you can use it:

Navigate to the Integration Creator#

Go to the Integration Creator tab.

Select Connection Type and Base URL#

Connection Type: Select the app you just created.
Base URL: Enter the base URL of the external app's API.

Parse OpenAPI Schema#

Paste the OpenAPI schema (in JSON format) into the editor.
The system will automatically extract:
Actions: API calls that can be executed.
Resources: Data structures returned by the API.
For example, a schema might define an action like "Fetch Invoice" and a resource type called "Invoice Object."
image.png

Upload Actions and Resources#

Review and edit the details as needed.
Click Upload All to publish actions and resources to your integration.

4️⃣ Defining an Action Type#

image.png
An Action Type specifies how the integration interacts with third-party APIs by defining API calls. It contains the following key fields:

Action Metadata#

Name: A descriptive name for the action, e.g., "Parse HOCR Page With Payload To Sheets."
Description: (Optional) A short explanation of what the action does.
URL: The endpoint of the API call (e.g., /misc/parse-hocr-page-with-payload-to-sheets).
Method: The HTTP method used for the request (POST, GET, PUT, etc.).

Parameters#

Define the request structure:
Headers: HTTP headers required for the API call.
Body: The payload sent with the request.
Use $ref: ResourceTypeName to reference a Resource Type from the same connection type.
Path Params: Parameters embedded in the URL (e.g., /user/{id}).
Query Params: Key-value pairs in the URL query string (e.g., ?key=value).

Output#

Define the structure of the data returned by the API.

Example: Parsing HOCR to Sheets#

Here’s an example action setup:

Action Fields#

Name: Parse HOCR Page With Payload To Sheets
URL: /misc/parse-hocr-page-with-payload-to-sheets
Method: POST

Parameters#

Headers:
{
  "type": "object",
  "properties": {}
}
Body:
{
  "$ref": "ParseHOCRPageWithPayloadToSheetsRequest"
}
Path Params:
{
  "type": "object",
  "properties": {}
}
Query Params:
{
  "type": "object",
  "properties": {}
}
Once complete, click Push to save and publish your action.

5️⃣ Testing Your Integration#

After setting up the integration:
1.
Use Altan’s debugging tools to verify that the actions and resources work as expected.
2.
Test webhook events for real-time updates.

🎯 Key Takeaways#

Custom Apps provide the framework for building integrations.
Integration Creator makes defining actions and resources effortless by parsing OpenAPI schemas.
Action Types allow for flexible API call definitions, while Resource Types standardize data formats.
Start creating your integrations today and unlock the full potential of Altan’s automation capabilities!
Modified at 2024-11-29 20:30:04
Previous
Altan Integrator
Next
Authentication
Built with