Skip to content

Conversation

@barshat7
Copy link
Contributor

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes
  • If data sources for any opportunity has been updated/added, please update the wiki for same opportunity.

Related Issues

Thanks for contributing!

@barshat7 barshat7 force-pushed the forms-suggestion-object branch from 3ba4f6c to abd06c8 Compare November 18, 2025 08:59
@github-actions
Copy link

This PR will trigger a minor release when merged.

* @param newSuggestions
* @returns {Promise<void>}
*/
async function addSuggestions(
Copy link
Contributor

Choose a reason for hiding this comment

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

move this to common utils for all three oppties.

const wrappedGuidance = { recommendations: guidance };
opportunity.setGuidance(wrappedGuidance);
opportunity.setUpdatedBy('system');
await addSuggestions(opportunity, suggestions);
Copy link
Contributor

Choose a reason for hiding this comment

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

opportunity gets created before this in low-conversion-handler.js with default guidance, shouldn't this be added there.
Scenario where mystique fails to send response back and oppty remains in backoffice without suggestion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the handler where it receives the guidance generated by Mystique. Suggestions are also generated by Mystique which we will update it here once we have implemented it there.
e.g

Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if Mystique doesn’t provide guidance? We will loose on oppties to show on ASO UI as it'll not have suggestion object or am i missing something here.

Copy link

@vdua vdua Nov 20, 2025

Choose a reason for hiding this comment

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

If there are no suggestions, or in pending_validation state they will not be visible in ASO UI. That is the contract as of now.

opportunityId: opportunity.opportunityId,
type: 'CONTENT_UPDATE',
rank: 1,
status: 'NEW',
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be PENDING_VALIDATION?

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.

4 participants