---
title: Context
slug: context
docTags: 
createdAt: 2026-09-14T23:41:45.369Z
---

## Set Context

```swift
KindlySDK.setNewContext(_ context: [String: String])
```

This context will be sent on **connect**, or next **message sent**, or **next button click**.

The context will be cleared automatically afterward

## Clear the Context Manually

```swift
KindlySDK.clearNewContext()
```
