Create your first AI agent in under 5 minutes
slack
here, or if you use the “Create new session” button, it will have web-ui
here.POST
1
, but you should check it anyway to ensure your agent doesn’t break when there are changes to the payload we send. When we do have multiple versions, and if you send back a 400
status code from your webhook, we will retry with an older enabled version.http://localhost:3000
. We will use ngrok to create a public URL for our local server. Start by installing ngrok and running the following command:
Forwarding
) for your local server. Copy this URL and paste it into the “URL” field in the AgentReach dashboard. For example, if the ngrok url is https://d682-125-99-34-82.ngrok-free.app
, you should paste https://d682-125-99-34-82.ngrok-free.app/start-new-session
into the “URL” field in the AgentReach dashboard.
Once this is done, you can click on the “Create new session” button in the AgentReach dashboard, and send a message. You should see that your webhook is called and that the req.body
object contains the message sent by you.
sessionId
along with a message
. Here are simple helper functions to use our APIs:
sessionId
:
startNewWorkflow
function has returned.