Skip to main content
Question

Passing a Word/CSV File as Bot Input variable

  • August 9, 2026
  • 2 replies
  • 53 views

 

I know the API can trigger the bot. The only part I’m not sure about is how to pass a Word or CSV file to the bot as an input, especially since the file is not on the machine where the Bot Agent is running.

Any idea what the best way to handle that would be?

thanks

2 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • August 9, 2026

@DanC25 You can pass a path and filename as an input variable (string), but that would have to point to a network UNC or a file on the local bot runner. If the file is a CSV, that is plain text -- you could pass the contents of the file as a string and, if you need the physical file, you could write a temp file to the bot runner computer. 


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • August 9, 2026

@DanC25 That's the best way I know. Good job!