AACFlow

Devin

Autonomous AI software engineer

Usage Instructions

Integrate Devin into your workflow. Create sessions to assign coding tasks, send messages to guide active sessions, and retrieve session status and results. Devin autonomously writes, runs, and tests code.

Tools

devin_create_session

Create a new Devin session with a prompt. Devin will autonomously work on the task described in the prompt.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
promptstringYesNo description
playbookIdstringNoNo description
maxAcuLimitnumberNoNo description
tagsstringNoNo description

Output

ParameterTypeDescription
sessionIdstringUnique identifier for the session
urlstringURL to view the session in the Devin UI
statusstringSession status (new, claimed, running, exit, error, suspended, resuming)
statusDetailstringDetailed status (working, waiting_for_user, waiting_for_approval, finished, inactivity, etc.)
titlestringSession title
createdAtnumberUnix timestamp when the session was created
updatedAtnumberUnix timestamp when the session was last updated
acusConsumednumberACUs consumed by the session
tagsjsonTags associated with the session
pullRequestsjsonPull requests created during the session
structuredOutputjsonStructured output from the session
playbookIdstringAssociated playbook ID

devin_get_session

Retrieve details of an existing Devin session including status, tags, pull requests, and structured output.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
sessionIdstringYesNo description

Output

ParameterTypeDescription
sessionIdstringUnique identifier for the session
urlstringURL to view the session in the Devin UI
statusstringSession status (new, claimed, running, exit, error, suspended, resuming)
statusDetailstringDetailed status (working, waiting_for_user, waiting_for_approval, finished, inactivity, etc.)
titlestringSession title
createdAtnumberUnix timestamp when the session was created
updatedAtnumberUnix timestamp when the session was last updated
acusConsumednumberACUs consumed by the session
tagsjsonTags associated with the session
pullRequestsjsonPull requests created during the session
structuredOutputjsonStructured output from the session
playbookIdstringAssociated playbook ID

devin_list_sessions

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
limitnumberNoNo description

Output

ParameterTypeDescription
sessionsarrayList of Devin sessions
sessionIdstringUnique identifier for the session
urlstringURL to view the session
statusstringSession status
statusDetailstringDetailed status
titlestringSession title
createdAtnumberCreation timestamp (Unix)
updatedAtnumberLast updated timestamp (Unix)
tagsjsonSession tags

devin_send_message

Send a message to a Devin session. If the session is suspended, it will be automatically resumed. Returns the updated session state.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
sessionIdstringYesNo description
messagestringYesNo description

Output

ParameterTypeDescription
sessionIdstringUnique identifier for the session
urlstringURL to view the session in the Devin UI
statusstringSession status (new, claimed, running, exit, error, suspended, resuming)
statusDetailstringDetailed status (working, waiting_for_user, waiting_for_approval, finished, inactivity, etc.)
titlestringSession title
createdAtnumberUnix timestamp when the session was created
updatedAtnumberUnix timestamp when the session was last updated
acusConsumednumberACUs consumed by the session
tagsjsonTags associated with the session
pullRequestsjsonPull requests created during the session
structuredOutputjsonStructured output from the session
playbookIdstringAssociated playbook ID

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started