# HTTP Function

The **HTTP Function** tile is designed to connect to external APIs and perform HTTP requests directly within your Tila scenario. It allows you to integrate third-party services, send and receive data, and use the results in subsequent steps.

## What does it do?

Lets you make HTTP requests to external services directly from Tila. Use it to integrate with any public API — retrieving, sending, updating, or deleting data in real time.

## When to use?

Use this tile when you need to:

- connect an external service or database via API,
- automatically receive and process responses from third-party systems,
- integrate additional data or functionality into your scenarios (for example, weather, CRM, notifications).

## Main tile elements

### API Name

A unique name for the connection. Use Latin letters without spaces.

### HTTP API URL

The full URL to which the request will be sent. `localhost` is not supported—a public address is required.

### Method

Choose the HTTP method:

- `GET` — to retrieve data
- `POST` — to send data
- `PUT` — to update data
- `DELETE` — to delete data

### API Description

Briefly describe what this API does. Examples:

- Get the weather forecast by coordinates
- Send an order to CRM

## How to use

1. Add the **HTTP Function** tile to your project.
2. Fill in the fields: name, URL, method, and description.
3. Click **Apply**.
4. Use the API response in following tiles (e.g., for text generation, building diagrams, etc.).

## Additional Info

If you’re unsure how to set up the tile—just paste the API documentation and describe your request. The assistant will help you:

- Select the correct URL and method
- Construct the request body
- Explain how to interpret the response
