Running Your First Agent
This section will walk you through creating and running your first agent to interact with a webpage.
Create an Agent
To onboard a new agent, you can make a direct HTTP POST request to Assisfy's API. The endpoint to create an agent is:
Request Headers
Authorization
:Bearer {API_KEY}
(your Assisfy API Key)Content-Type
:application/json
Request Body
The payload should include the following fields:
name
: A unique name for your agent.website
: The primary website your agent will interact with.domain
: The purpose of your agent. Choose fromsales
,marketing
,research
,automation
, orpodcasting
.
Code Example (JavaScript)
Here’s how you can onboard an agent using the fetch API:
Sample Response
Response Fields
agentId
: Unique identifier for the newly created agent.name
: The name of the agent.website
: The primary website assigned to the agent.domain
: The agent's specified domain.apiKey
: The API Key to use for this specific agent.
Notes
Save the
apiKey
provided in the response for future requests. This is specific to the created agent.Ensure your API Key is stored securely to avoid unauthorized access.
Now you can use this newly created agent for initializing sessions, managing actions, and leveraging Assisfy’s capabilities! For further steps, proceed to Initialize a Session.
Last updated