> ## 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.

# createPromptTemplate

***

# Function: ~~createPromptTemplate()~~

```ts theme={null}
function createPromptTemplate(options: object): Promise<PromptTemplate>;
```

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

## Parameters

### options

Creation request.

#### name

`string`

Preferred template name.

#### projectId?

`string`

(Optional) Project ID associated with template.

#### projectName?

`string`

(Optional) Project name associated with template.

#### template

`string` | `object`\[]

Template content as messages or plain text.

## Returns

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

A promise that resolves to the created template summary.

## Deprecated

Prefer `createPrompt`.

Creates a prompt template without enforcing unique names.
