*** title: Introduction to Flows Query Language updated: 2024-12-06T00:00:00.000Z slug: docs/postman-flows/flows-query-language/introduction-to-fql max-toc-depth: 2 ---------------- You can use *Flows Query Language* (FQL) to parse and transform JSON data to get the fields and structure you want. ## FQL compared to TypeScript The logic blocks in Postman Flows ([**If**](/docs/postman-flows/reference/blocks/if/), [**Condition**](/docs/postman-flows/reference/blocks/condition/), and [**Evaluate**](/docs/postman-flows/reference/blocks/evaluate/)) support both FQL and [TypeScript](/docs/postman-flows/typescript/typescript-overview/). While FQL is designed for querying and transforming data, TypeScript offers the robustness and flexibility of a full programming language within your Postman Flows. This makes TypeScript more suitable for complex logic and large-scale projects. Also, if you are familiar with both the JavaScript and TypeScript ecosystems, you may prefer using TypeScript over FQL. ## Extract fields from data with FQL ![FQL example](https://assets.postman.com/postman-docs/v11/fql-example-v11-60.png) You can use FQL to extract specific fields from data passed between blocks. In this example, the **Template** block holds a `customer_info` JSON object. The variable `data_field` receives the formatted data and passes it into the **Evaluate** block where it can be queried with FQL. FQL in the **Evaluate** block prints out the values of `customer_info`. This example also includes a comment that uses the FQL `/*comment*/` syntax. ## Things you can do with FQL The following pages show examples of things you can do with FQL: * [Get basic values](/docs/postman-flows/flows-query-language/get-basic-values/) * [Conditional data selection](/docs/postman-flows/flows-query-language/conditional-data-selection/) * [Return structured data](/docs/postman-flows/flows-query-language/return-structured-results/) * [Data manipulation](/docs/postman-flows/flows-query-language/data-manipulation/) ## Using Postman Agent Mode with FQL Not sure how to write an FQL statement for your flow? Use [Postman Agent Mode](/docs/agent-mode/overview/)! Tell Agent Mode what you want to do using plain language, and it will generate a FQL statement for you. In the **Evaluate** block, drag the Agent Mode icon Agent mode icon to the block's text box or anywhere on the canvas to open Agent Mode. Enter your query as plain text in the Agent Mode text box and press the **Return** or **Enter** key. Agent Mode will suggest a query for you based on your prompt. To learn more about how you can use Postman's AI to help you use Flows, visit [Postman Agent Mode](/docs/agent-mode/overview/). ## FQL reference For a complete reference for all FQL functions, see the [FQL function reference](/docs/postman-flows/flows-query-language/function-reference/).