AWSSfn
tool in the list of tools provided to an Agent, you can grant your Agent the ability to invoke async workflows running in your AWS Cloud.
When an Agent uses the AWSSfn
tool, it will provide an argument of type string
which will in turn be passed into one of the supported actions this tool supports. The supported actions are: StartExecution
, DescribeExecution
, and SendTaskSuccess
.
Setup
You’ll need to install the Node AWS Step Functions SDK:npm
Usage
npm
Note about credentials:
- If you have not run
aws configure
via the AWS CLI, theregion
,accessKeyId
, andsecretAccessKey
must be provided to the AWSSfn constructor. - The IAM role corresponding to those credentials must have permission to invoke the Step Function.