> ## Documentation Index
> Fetch the complete documentation index at: https://langbear.runbear.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting prompt templates

> Manage and improve your prompt templates online.

This page guides you through the process of getting prompt templates in your application.
Check out [Application Prompt Templates](/application/prompt-templates) page to manage
prompts.

<Note>
  Don't forget to initialize [LangBear client](/development/initialize) before
  using it.
</Note>

## Getting a prompt template

The `Prompts#get` method returns a prompt template related to the specified key.
The returned object is a `LangBearPromptTemplate` that contains multiple prompt templates.

<CodeGroup>
  ```python python theme={null}
  prompt = lb.prompts.get("company-name-generation")
  ```

  ```typescript typescript theme={null}
  TBD;
  ```
</CodeGroup>

## Localization

Pass `lang` as a parameter to the `Prompts#get` function to get prompt template
for a language.

<CodeGroup>
  ```python python theme={null}
  prompt = lb.prompts.get("company-name-generation", lang="fr")
  ```

  ```typescript typescript theme={null}
  TBD;
  ```
</CodeGroup>

Default language will be used if `lang` is not specified.

## Formatting input variables

Replace `{variable}` with the value of the variable.

<CodeGroup>
  ```python python theme={null}
  prompt.format(product="colorful socks")
  ```

  ```typescript typescript theme={null}
  TBD;
  ```
</CodeGroup>
