# Find Or Insert

**Introduction**

The "Find or Insert" step retrieves a single entry from a specified table or inserts a new one if no matching entry is found. This step ensures that a specific record always exists in the database.

**Configuration**

* **Table**: Specifies the table to search or insert the entry into. This parameter is required.
* **Value**: Defines the values for the columns of the entry. These values are used to find an existing entry or create a new one. This parameter is required.

**Subpaths**

* **Filter**: Provides access to the columns of the specified table. These can be used to define the structure of the value or add conditions.

**Outputs**

* **Value**: The retrieved or newly created entry, represented as a row object containing values for all columns in the table.


---

# 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.flexy.bot/modules/database/steps/find-or-insert.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.
