# Supported Languages

Our platform currently supports two programming languages for data transformations:

## Python

When using Python, write your code as a function:

```python
def functionName(data):
    # Your flow logic here
    return result
```

## JavaScript

When using JavaScript, write your code as a named lambda function:

```javascript
(data) => {
    // Your flow logic here
    return result
}
```

### Available JavaScript Imports

The following libraries can be used directly when using JavaScript to edit flows without requiring additional import statements.

* **lodash** (as `_`)

```javascript
(data) => {
    // Group users by role
    const groupedUsers = _.groupBy(data.input.users, 'role');
    
    // Get only active users
    const activeUsers = _.filter(data.input.users, {isActive: true});
    
    return {
        groupedUsers,
        activeUsers
    };
}
```

* **date-fns**: `{ format, parseISO }`&#x20;

```javascript
(data) => {
    // Format dates in a user-friendly way
    const formattedUsers = data.users.map(user => ({
        ...user,
        joinedDate: format(parseISO(user.joinedAt), 'MMM dd, yyyy')
    }));
    
    return formattedUsers;
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.laminar.run/building-an-integration/advanced/flows/supported-languages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
