Trigger a Bot with the API

Is there any way to get a scheduled bot start with an api call?

 

thx

0 3 231
3 REPLIES 3

No.  The API surfaces certain general operations that can be performed - ADD, UPDATE, DELETE.   It does not serve as a way to interact with Bots.

If there is a certain workflow you DO want to trigger from external systems, you can build that.  One simple way is to create a Trigger table that the API can interact with - e.g. ADD a trigger row.  Then build your Bot to run when a trigger row is inserted and meets certain requirements - e.g. maybe with a trigger name for that Bot.

I hope this helps!

Steve
Platinum 5
Platinum 5

You can make the process for your scheduled bot reusable, then create a manual automation trigger system as @WillowMobileSys suggested.

I prefer to include a manual trigger system inside the same table, adding a column [Automation_Trigger] into the mix so that I can use that for my manual triggering.  It's actually part of my Standard Starting Template, which you can learn more about in the video below (I talk about this column in the clip below).

With the manual automation trigger in place, you can easily send an external API edit call that includes the trigger for the bot:

{
  "Table_ID": "123abc", 
  "Automation_Trigger": "Send_Daily_Summary_Email"
}

 The bot is watching for this trigger word, firing off...

  1. Which first clears the trigger word - preventing duplicates (this is vital)
  2. Then goes on to do whatever you want (running the process you turned linking on for)

Hope it helps!

Top Labels in this Space