Answer Server 25.3
Answer Server Help

# getTranscript

The `getTranscript` method gets an enumerated table of history stage objects, which record the user input and Answer Server responses for the current conversation session.

## Syntax

    getTranscript()

## Returns

(table) An enumerated table of history stage objects. Each stage contains the user text and Answer Server response prompt for that stage of the conversation.

NOTE: If you start a conversation session by sending a Converse action with no user text, the response for the first history stage returns `nil` for the user text.

## Example

    local history = taskUtils:getTranscript()

## Methods

The history stage objects that `getTranscript` returns have additional methods, to allow you to inspect the response table.

You can access a history stage object, and call its methods by using the '`:`' operator. For example:

    local first = history[1]
    local usersaid = first:userInput()

Method | Description
--- | ---
userInput | Returns the input text that the user supplied at a particular stage of the conversation.
responsePrompts | returns the table of prompts that were returned by the system at a particular stage of the conversation.

Copyright 2016-2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Answer Server 25.3

Topic Title: getTranscript