Overview
The/instruct endpoint allows you to send instructions to your Hyperaide assistant programmatically. Your assistant will process the instruction and take appropriate actions, just as if you had messaged it directly.
Use this endpoint when you want your assistant to actively respond and take actions based on your instruction.
Endpoint
Authentication
Include your API key in the request headers:Request Body
The instruction you want to send to your assistant. Can be any natural language instruction.Example:
"Create a task to review the Q4 budget by Friday"Request Example
Response
Success Response (200 OK)
The API returns immediately after queuing the instruction. Your assistant processes it asynchronously and will perform actions based on your instruction.
Error Responses
401 Unauthorized
401 Unauthorized
400 Bad Request
400 Bad Request
Missing or invalid parametersEnsure you’re sending the
content field in the request body.404 Not Found
404 Not Found
User not foundThe API key is valid but the associated user doesn’t exist. Contact support.
500 Internal Server Error
500 Internal Server Error
Server errorSomething went wrong on our end. Try again or contact support if the issue persists.
Use Cases
- Task Creation
- Workflow Automation
- Smart Notifications
- Data Processing
Automatically create tasks from external systems
Best Practices
Be Specific
Provide clear, detailed instructions just as you would when messaging your assistant directly
Include Context
Add relevant context in your instruction to help your assistant make better decisions
Error Handling
Always check response status codes and implement proper error handling
Rate Limiting
Be mindful of rate limits when making multiple requests. Implement exponential backoff if needed.
What Happens Next?
After you send an instruction:- Queued: The instruction is immediately queued for processing
- Processed: Your assistant analyzes the instruction and determines appropriate actions
- Executed: Actions are performed (creating tasks, sending messages, updating databases, etc.)
- Notifications: If configured, you’ll receive notifications about the results through your connected channels
Related Endpoints
POST /inform
Use this endpoint if you want to provide information without expecting actions