*** id: 8a45ced7-8d2d-4289-bad5-57abb9a7bbd1 title: PromptResult slug: /ruby/reference/calling/results/prompt description: The PromptResult object is returned when a prompt operation is completed. max-toc-depth: 3 ---------------- [prompt]: /docs/server-sdk/v2/ruby/reference/calling/actions/prompt [relay-event]: /docs/server-sdk/v2/ruby/reference/event # Relay::Calling::PromptResult This object is returned by the [`prompt`][prompt] group of methods and represents the final result of a prompting attempt. ## Properties | Property | Type | Description | | :----------- | :-------------------------- | :---------------------------------------------- | | `successful` | Boolean | Whether the attempt has completed successfully. | | `event` | [Relay::Event][relay-event] | Last event that completed the operation. | | `type` | String | `digit` or `speech`. | | `result` | String | Result of `prompt` attempt. | | `terminator` | String | Digit that terminated the prompt. | | `confidence` | Numeric | Confidence of the result on a `speech` prompt. |