actions

Ask the NMLP assistant a question

Natural-language Q&A over NMLP's own guides — donation, drop-off, free-pickup, rare-collection, accepted-items, service-area, and New Mexico book questions. Backs the /ask-nmlp assistant. Returns a grounded answer with source links; can also surface the free-pickup path. Public, no key, CORS enabled.

post/api/ask

Request

  • Base URL: https://newmexicoliteracyproject.org
  • URL: https://newmexicoliteracyproject.org/api/ask
  • Auth: none declared

Request body

questionstring required

The user's natural-language question about donating, dropping off, or selling books in the Albuquerque metro / New Mexico.

Example request

{
  "question": "Do you take water-damaged encyclopedias?"
}

Response

Grounded answer payload

object required

Answer text plus any source links / suggested next action.

Changes

No recorded changes to this operation across all 1 revision of this API.