Search your Senso.ai knowledge base hands-free through Edith smart glasses. Triggers on knowledge/document queries.
npx @senso-ai/shipables install samdickson22/edith-senso-knowledgeSearch your knowledge base through Senso.ai when users ask document or knowledge questions via Edith smart glasses.
Activate this skill when the user asks questions that imply searching documents, policies, knowledge bases, or stored information. Examples:
Do NOT use this skill for general knowledge questions, web searches, weather, math, or anything that doesn't involve the user's own ingested documents.
The user must have a Senso.ai API key. If they haven't configured one yet, tell them:
The API key should be stored in OpenClaw's memory/config as SENSO_API_KEY.
Use the exec tool to call the Senso.ai search endpoint:
curl -s -X POST "https://sdk.senso.ai/api/v1/search" \
-H "Content-Type: application/json" \
-H "X-API-Key: ${SENSO_API_KEY}" \
-d '{"query": "<user's question>", "top_k": 5}'
The response is JSON with an array of results, each containing relevant text passages and metadata.
Edith speaks responses through smart glasses speakers. Follow these rules strictly:
User: "Hey Edith, what does the return policy say about electronics?"
Good response: "Your return policy says electronics can be returned within 30 days with the original receipt. After 30 days, only store credit is offered."
Bad response: "I found 3 results in your knowledge base. Result 1: Section 4.2 of return-policy.pdf states that electronic items purchased from authorized retailers may be returned within a period of thirty calendar days from the date of purchase, provided that..."
If the search results contain relevant passages but need synthesis, you can optionally use the generate endpoint to produce a grounded answer:
curl -s -X POST "https://sdk.senso.ai/api/v1/generate" \
-H "Content-Type: application/json" \
-H "X-API-Key: ${SENSO_API_KEY}" \
-d '{"query": "<user question>", "context": "<concatenated search result passages>"}'
Only use this when search results need summarization across multiple passages. For simple lookups where a single passage answers the question, just summarize the passage directly.