[](https://js.langchain.com/docs/how_to/structured_output/): LLM should read this page when: 1) Wanting a model to return structured output matching a schema 2) Extracting data from text to insert into a database or downstream system 3) Learning different strategies for prompting models to output structured data The page covers using the `.withStructuredOutput()` method with JSON Schema or Zod to have models return structured output, prompting techniques with output parsers like JsonOutputParser or custom parsing, and specifying output methods for models supporting multiple options.

