OpenAI Agent with Slack Approvals
← Back to gallery
SlackApp Mention Subscription
OpenAIAgent
UtilitiesSubroutine definition
SlackSend Text Message
UtilitiesSubroutine call
UtilitiesSubroutine call
OpenAIAgent Tool Result
OpenAIAgent Tool Result
SlackSend Message With Interactions
SlackUpdate Message Blocks
SlackUpdate Message Blocks
OpenAI Agent with Slack Approvals
AIOpenAISlackUtilities
AI Agents with tools are very useful, but when the tools are delicate or have a non-trivial blast radius, it's crucial to have a human in the loop for reviewing any such tool use.
This is an AI Agent example with the OpenAI app and an approval harness for tool use. The agent responds to messages on Slack, and all tool use needs to be interactively approved by the user on Slack.
Listen for Mentions
Agent
Tool Call Approval
Send Response
Ask for Approval (Add)
Ask for Approval (Multiply)
Business logic (built-in)Transform
Add
Business logic (built-in)Transform
Multiply
Complete Addition
Complete Multiplication
Request Approval
Business logic (built-in)Condition
Check Button
Update Message - Approved
Update Message - Rejected
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.