Answer Server 23.4

# 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-2023 Open Text
Version 23.4 | Last updated September 2023

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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Answer Server 23.4

Topic Title: getTranscript