acceptInput

public Prompt acceptInput(ConversationContext context, String input)

Accepts and processes input from the user and validates it. If validation fails, this prompt is returned for re-execution, otherwise the next Prompt in the prompt graph is returned.

Return

This prompt or the next Prompt in the prompt graph.

Parameters

context

Context information about the conversation.

input

The input text from the user.