> For the complete documentation index, see [llms.txt](https://docs.luciq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.luciq.ai/ios/setup-luciq-for-ios/setup-session-replay/support-tools-integration.md). Agents can also search and read this documentation through its [MCP server](https://docs.luciq.ai/~gitbook/mcp).

# Support Tools Integration

Pass the Luciq session URL from your iOS app into support tools such as Zendesk as a custom attribute, so agents can replay a reported issue.

To be able to debug support tickets effortlessly, all you have to do is extract the session URL from Luciq and send it as a custom attribute to your preferred support tools. This enables your support team to view Session Replays for every reported issue to help in debugging the issue. You can use the below API to extract the session URL:

{% tabs %}
{% tab title="Swift" %}
{% code overflow="wrap" %}

```swift
if let sessionLink = SessionReplay.sessionReplayLink {
  print("result: \(sessionLink)")
}
```

{% endcode %}
{% endtab %}

{% tab title="Objective-C" %}
{% code overflow="wrap" %}

```objectivec
NSString *sessionLink = LCQSessionReplay.sessionReplayLink;
if (sessionLink != NULL) {
    NSLog(@"sessionLink: %@", sessionLink);
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

#### Zendesk Example

To automatically attach the session URL to every support ticket submitted through Zendesk, just insert the following snippet into your application's code.

<figure><img src="https://828794017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAM8wNfllcup3GnWJ1WtW%2Fuploads%2Fgit-blob-2bd2096a0e55761577ac4516ecced706d37188e9%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

***Send Session URL as tags:***

{% tabs %}
{% tab title="Swift" %}

```swift
let request = ZDKCreateRequest()
        request.subject = "Session replay"
        request.requestDescription = "Adding session replay url"

        let luciqSessionReplayLink = SessionReplay.sessionReplayLink

        request.tags = [luciqSessionReplayLink]
```

{% endtab %}
{% endtabs %}

***Send Session URL as custom fields:***

{% tabs %}
{% tab title="Swift" %}

```swift
let request = ZDKCreateRequest()
        request.subject = "Session replay"
        request.requestDescription = "Adding session replay url"

        let luciqSessionReplayLink = SessionReplay.sessionReplayLink
        let field = CustomField(fieldId: 1234, value: luciqSessionReplayLink)

        request.customFields = [field]
```

{% endtab %}
{% endtabs %}

#### Intercom Example

To automatically include the Session URL with each support ticket received via Intercom, simply integrate the following code snippet into your application. This will send the session URL to the recent events section.

{% tabs %}
{% tab title="Swift" %}
{% code overflow="wrap" %}

```swift
guard let sessionURL = SessionReplay.sessionReplayLink else { return }
        Intercom.logEvent(withName: "session-replay-url", metaData: ["url": sessionURL])
        
        Intercom.present()
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.luciq.ai/ios/setup-luciq-for-ios/setup-session-replay/support-tools-integration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
