Skip to content

added the scriptRunner in the website#1199

Open
ViaSocket-Git wants to merge 1 commit intomainfrom
feature_via_01_Nov_3927
Open

added the scriptRunner in the website#1199
ViaSocket-Git wants to merge 1 commit intomainfrom
feature_via_01_Nov_3927

Conversation

@ViaSocket-Git
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 605 to +616
params.append('categories', selectedIndustries.join(','));
}

const response = await axios.post(`https://flow.sokt.io/func/scrifJcjUubA?${params.toString()}`, {});
const responseData = await response?.data;
const payload = {};
if (selectedDepartments.length > 0) {
payload.departments = selectedDepartments.join(',');
}
if (selectedIndustries.length > 0) {
payload.categories = selectedIndustries.join(',');
}

const responseData = await scriptRunner('AI_SEARCH', payload, 'POST');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Include selected apps when invoking AI search

getAiResponse still collects the selected apps into params, but the subsequent scriptRunner('AI_SEARCH', payload) call never uses params and the payload object omits an apps field. As a result the request no longer contains the user's chosen apps, so the AI search backend cannot tailor results to the selection and always returns generic data. Forward the selected app names in the payload (or reuse params) to preserve the previous behaviour.

Useful? React with 👍 / 👎.

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.

2 participants