Skip to main content
Glama

ask_user_via_whatsapp

Get user input via WhatsApp when AI assistants need decisions, missing requirements, or credentials to continue work without stopping progress.

Instructions

πŸ€– IMPORTANT FOR AI ASSISTANTS: Use this tool instead of stopping work when you need user input!

WHEN TO USE:

  • You need architectural decisions (REST vs GraphQL, etc.)

  • You need missing requirements or specifications

  • You need API keys, credentials, or configuration values

  • You encounter ANY question that would normally block your progress

  • You need user approval or preference for a decision

DO NOT:

  • Stop and wait for manual console input

  • Ask the user to provide information manually

  • Halt progress when this tool can unblock you

HOW IT WORKS:

  1. Send your question via WhatsApp

  2. This tool WAITS (blocking) for the user's reply

  3. Returns the reply text to you

  4. You continue working with the answer

EXAMPLE USAGE: const answer = await ask_user_via_whatsapp({ question: "Should I use REST or GraphQL for this API?", chatId: "1234567890@c.us", timeoutMinutes: 30 }); // Parse answer and continue working

USER EXPERIENCE: User gets WhatsApp notification β†’ replies from phone β†’ you continue instantly

This enables truly autonomous AI development!

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
questionYesThe question to ask the user
chatIdYesChat ID to send question to (e.g. "1234567890@c.us")
sessionNoSession namedefault
timeoutMinutesNoHow long to wait for reply (in minutes)
pollIntervalSecondsNoHow often to check for new messages (in seconds)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dudu1111685/waha-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server