Chainlit home page
Search...
⌘K
Github
Join Discord
Join Discord
Search...
Navigation
Advanced Features
Ask User
Documentation
Examples
API Reference
Chainlit Help
Get Started
Overview
Installation
In Pure Python
Integrations
Deploy
Overview
Platforms
Basic Concepts
Chat Life Cycle
Starters
Message
Step
User Session
Element
Action
Command
Advanced Features
Streaming
MCP Servers
Ask User
Multi-Modality
Chat Profiles
Chat Settings
Testing & Debugging
Data Persistence
Overview
Chat History
Human Feedback
Open Source Data Layers
Tags & Metadata
Authentication
Overview
Password
Header
OAuth
Customisation
Overview
Translation
Avatars
Logo and Favicon
Theme
JS
CSS
Backend
Config
Environment Variables
Command Line Options
Guides
Async / Sync
Migrate to Chainlit v2.0.0
On this page
Available Ask APIs
Advanced Features
Ask User
The ask APIs prompt the user for input. Depending on the API, the user input can be a string, a file, or pick an action.
Until the user provides an input, both the UI and your code will be blocked.
Ask File example
Available Ask APIs
Text Input
Ask the user for a string input.
File
Ask the user to upload a file.
Action
Ask the user to pick an action.
Was this page helpful?
Yes
No
Suggest edits
Raise issue
MCP Servers
Multi-Modality
Assistant
Responses are generated using AI and may contain mistakes.