Connect Cormak in Dify
- Install the test packageUse Plugins → Install plugin → Local Package File in a Dify test workspace. The Marketplace listing is in preparation.
- Authorize accessUse Dify 1.19 or later. Configure the provider’s OAuth client using the setup helper and exact Dify callback, then choose Authorize. Review Cormak permissions and the connection limit. Dify refreshes the connection automatically.
- Check the balanceRun Get Credit Balance. It reads the current plan and credit balances without spending any credits.
Generate a private draft from an AI agent
Run List Cormak Agents and choose the saved agent and task kind. For a copywriting agent, choose text and pass a brief with verified facts and the audience. Create a UUID once for this draft and pass it to Run Cormak Agent.
Enable Allow credit use in the node when the workflow is authorized to spend. If Cormak returns awaiting_confirmation, open the approval link as the owner. Then repeat the same inputs and request ID. Pass that ID to Get Agent Run Status and use the draft from the completed result.
Add image or SEO generation
Generate Image uses the same owner approval pattern. Use Get Image Status to retrieve a temporary media link. For SEO, quote the article length first, pass the maximum credits to Generate SEO Article and use the returned job ID in Get SEO Article.
Keep status checks bounded. If a request times out, keep its original ID and check the existing operation. Review generated content before publishing and keep private media links inside the workspace.

