# getBuiltInConvention()

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Function: getBuiltInConvention()

> **getBuiltInConvention**(`name`): [`OutputConvention`](https://getpromptscript.dev/api-reference/core/src/interfaces/OutputConvention/index.md)

Defined in: [core/src/types/convention.ts:157](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/core/src/types/convention.ts#L157)

Get a built-in convention by name.

## Parameters

### name

[`BuiltInConventionName`](https://getpromptscript.dev/api-reference/core/src/type-aliases/BuiltInConventionName/index.md)

## Returns

[`OutputConvention`](https://getpromptscript.dev/api-reference/core/src/interfaces/OutputConvention/index.md)