Skip to content

feat: Add AI Agent workflow action node #12650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 370 commits into from
Jun 22, 2025

Conversation

abdulrahmancodes
Copy link
Contributor

@abdulrahmancodes abdulrahmancodes commented Jun 17, 2025

agent.mov

…aceService, enhancing workflow step functionality
…eval, update, and deletion with feature flag checks
… for agent management with feature flag checks
…ntegrating TypeOrmModule and core modules for enhanced functionality
…ate form state management and improve UI with CodeEditor for response format. Replace deprecated model provider and model selection logic with updated constants and hooks.
…ture flag checks in WorkflowStepResolver and AgentResolver
… handling, enhancing type safety and filtering based on API key availability.
…streamlining the test suite and focusing on valid scenarios.
… use factory functions for improved configuration and API key management.
…lId type and applying it to modelId property for AI models.
…ancing type safety in ClientConfig and related states.
…nerated-metadata, ensuring consistency in module references.
name
description
prompt
modelId
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry should have made that feedback earlier sorry but modelId feels off, we usually use "name" in the codebase for slugs (identifier like "company") and label for end-user displayed name ("Company")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback! I see the convention you're referring to, but I believe modelId is more accurate in this case. Values like 'gpt-4o' or 'claude-opus-4-20250514' are the actual model identifiers used by providers like openai and anthropic, not internal slugs like 'company'. Since this value is passed directly to the API to select the model, it's more of an external identifier than a conventional name.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I see that it's what AI SDK uses too so it makes sense 👍

}

@Injectable()
export class FeatureFlagGuard implements CanActivate {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea

…tions to streamline config variable definitions.
… across multiple files for consistency and clarity in the ClientAIModelConfig structure.
…ent by removing unnecessary translation macro, enhancing code clarity.
…el' for AI models, ensuring consistency with recent configuration changes.
Copy link
Member

@FelixMalfait FelixMalfait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@FelixMalfait FelixMalfait merged commit 65df511 into twentyhq:main Jun 22, 2025
54 checks passed
@salesbay
Copy link

salesbay commented Jul 2, 2025

Hi, We upgraded to latest v1.03 but still don't see the AI Agent in workflow. Please advise when it will be released?
I thought it's already merged to the main. Thanks!

@FelixMalfait
Copy link
Member

Hey @salesbay it's behind a feature flag IS_AI_ENABLED which you can set in the admin panel if you're self-hosting.

We still need to iterate on it, it's going to be a lot more powerful :)

@salesbay
Copy link

salesbay commented Jul 2, 2025

Hey @salesbay it's behind a feature flag IS_AI_ENABLED which you can set in the admin panel if you're self-hosting.

We still need to iterate on it, it's going to be a lot more powerful :)

Thanks, Felix! We enabled it in the .env docker file and in the docker-compose.yml, but we can't see it in the Admin panel.
There are only these variables:
image
And they are not mentioned in the docs.
Can you please share how to use them?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.