Question Answer Module
The@credo-ts/question-answer package implements the DIDComm Question Answer Protocol, enabling agents to ask and respond to questions.
Installation
Registration
What It Provides
The Question Answer module enables:- Send questions to connected agents
- Receive and respond to questions
- Multiple choice questions with predefined responses
- Free-form text responses
Usage
Sending a Question
Receiving Questions
Receiving Answers
Use Cases
- Consent Requests - Ask for user consent before actions
- Verification Checks - Confirm user identity or attributes
- Service Selection - Simple yes/no or multiple choice questions
- Feedback Collection - Gather user feedback
Question Types
Multiple Choice
Free-Form Text
See Also
- Action Menu Module - Interactive menu protocol
- DIDComm Module - DIDComm protocol support
- DIDComm Guide - DIDComm usage guide