> For the complete documentation index, see [llms.txt](https://docs.bird.com/taxi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bird.com/taxi/connectors/klaviyo-connector/setting-up-personalisation-for-klaviyo.md).

# Setting up personalisation for Klaviyo

Before setting up personalisation in Taxi from Klaviyo, you'll need to [set up personalisation](https://docs.messagebird.com/taxi/Dynamic%20content,%20segmentation%20and%20personalisation/Personalisation/setting-up-personalisation-fields) in your account.

Klaviyo uses [Django](https://docs.djangoproject.com/en/1.8/ref/templates/builtins/) for segmentation and personalisation. Personalisation fields in Klaviyo use the following style of notation:

\#{{ first\_name }}

or

\#{{ person.title }}

for a custom variable.

These are set up in the personalisation settings in Taxi.

![](https://2516523503-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMq0EQG9Ff46ZMsrIBcVn%2Fuploads%2Fgit-blob-422efbae5eb7172bbd4d92e2d288bbf6d7ba70f5%2FqeQSZ3m8pq5yradOnNNTNpuc9sMGR3AZusdyg5tI7bA5SbPvX5_1KCCyebuZmH2G2sYCbV2VeQS3T03KuqmrPc7B-vgDwoavwAfl88fNulithC7lc5CwkK6bOmqcGrXEZai-trFs?alt=media)

These will become available in rich text fields in the editor.

![](https://2516523503-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMq0EQG9Ff46ZMsrIBcVn%2Fuploads%2Fgit-blob-afdf5c4b944aefb9c25667d7f7c4d04f92c85d5e%2Fjz6ARNbXtTRFAf5dHvCOEVylj4fmiVxcdRP2O_5KYYO8gIO43aAO3ZWsAv4iYhZGyyh-7dN3hs1CtelPkrxzcNr9kki0rpjpoUZYEnHhqVgHt5FzjfQQlqmbVAyhaMnUFFf59nmR?alt=media)

\
You can add as much or as little code here as you like, so it’s possible to use Klaviyo code to do things like use a fallback for first name and make the first name capitalised:<br>

| Hi #{{ first\_name\|title\|default:'there' }} |
| --------------------------------------------- |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bird.com/taxi/connectors/klaviyo-connector/setting-up-personalisation-for-klaviyo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
