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

# getPromptTemplates

***

# Function: ~~getPromptTemplates()~~

```ts theme={null}
function getPromptTemplates(projectName: string): Promise<PromptTemplate[]>;
```

Defined in: [src/utils/prompt-templates.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/prompt-templates.ts)

## Parameters

### projectName

`string`

Project name whose templates should be fetched.

## Returns

`Promise`\<[`PromptTemplate`](/sdk-api/typescript/reference/types/type-aliases/PromptTemplate)\[]>

A promise that resolves to the available prompt templates.

## Deprecated

Prefer `getPrompts`.

Lists prompt templates scoped to the provided project name.
