AWS Lambda
Last updated: May 15, 2026
Use AWS Lambda when you want Aissist to access internal systems through a controlled API layer.
This works well when you do not want to expose your database or backend systems directly.
With Lambda, you can:
control exactly what data Aissist can read
filter or transform the returned data
expose only the fields and actions you want
How the pattern works
Build a small Lambda function for the data or action you want to expose.
Publish it through a Function URL or API Gateway.
Connect that endpoint through the RESTful API integration.
Create actions that call the endpoint.
Example flow
Step 1: write the Lambda function
Create a small function that returns only the data Aissist needs.
This example fetches booking details by booking ID:
import mysql.connector
def lambda_handler(event, context):
secrets = dict()
with open("secrets.json") as input_fp:
secrets = json.load(input_fp)
database = mysql.connector.connect(
host=secrets["host"],
database=secrets["database"],
user=secrets["user"],
password=secrets["password"]
)
query = """ SELECT * FROM cr_booking WHERE id = %s """
cursor = database.cursor()
cursor.execute(query, (json.loads(event['body'])["booking_id"],))
column_names = [col[0] for col in cursor.description]
bookings = [dict(zip(column_names, row)) for row in cursor.fetchall()]
return {"book_details": bookings}Step 2: package the function
Package the function, dependencies, and any required configuration into a zip file.
Install the MySQL connector package:
Create the deployment package:
Step 3: create the Lambda function in AWS
Go to the AWS Lambda Console.
Create a new Lambda function.
Enable a Function URL for a simple setup, or use API Gateway for stricter control.
Upload your
deployment_package.zip.Copy the public endpoint URL.

Step 4: connect Lambda to Aissist
Add the endpoint through the RESTful API integration.
Then create actions that call that endpoint.
Use the Lambda Function URL or API Gateway URL as the API endpoint.
Why use AWS Lambda
AWS Lambda is useful because it is:
Secure — expose only the data and operations you allow
Scalable — no server management required
Cost-efficient — pay only when it runs
Flexible — shape the response for Aissist before it returns
Best practice
Keep each Lambda endpoint focused on one job.
Return only the fields Aissist needs, then test the action in Action Debugger.
Last updated

