Audience: Developers ·
Credential: Server only
The important part
- Create is a write; a lost response can conceal success.
- An agent contains shared behaviour and knowledge, while a number owns routing and channels.
- A created agent does not confirm that a real call will work.
Before you send
KeepNIXFLEX_API_KEY on the server for the intended account. Choose a clear name and reviewed instructions. Creating an agent does not import a phone number or connect a calendar.
Create once
Node HTTP
Verify and connect
Read the saved agent by ID. Set the voice, language and conversation controls you actually need, respecting the agent fields. Connect an owned number through number setup, then read its assigned agent and channel switches. Keep frequent essential facts in the main instructions and detailed material in the agent’s Knowledge base. SMS and Web agent instructions live in their own number-level settings; do not assume an agent prompt change rewrites them.Check behaviour
Use the dashboard Knowledge Test for factual retrieval, then a controlled call for the full interaction. Check the actual calendar, SMS or transfer result for an enabled action. Do not treat an accepted call as successful delivery.
Deleting an agent soft-disables it. It does not erase history, delete a number or close the account.