Magidoc

draftOpportunityLines
Mutation

Uses AI to draft priced lines for an opportunity from a free-text brief. Replaces all existing lines with the draft and overwrites the opportunity description with the generated summary.

Access: workspace members with CRM access. Errors: opportunity not found, empty brief.

Arguments

#

opportunityId

ID !
Non-null

briefText

Non-null

Response

#

Returns Opportunity !.

Example

#