Skip to content

Conversation

@himanshu7895
Copy link
Contributor

In a Knowledge Management system, maintaining the quality and relevance of knowledge articles is essential. End-users often provide feedback in the form of ratings and comments on articles they read. However, manually reviewing this feedback across a large number of articles is time-consuming and inefficient.
This use case implements an automated process using ServiceNow Flow Designer and scripting to collect, aggregate, and summarize feedback for each Knowledge Article. The summarized feedback is intended for use by Knowledge Managers or Editors to assess article quality, identify content gaps, and prioritize updates or improvements.

Tables Involved:

kb_knowledge – Stores knowledge articles.

kb_feedback – Stores user feedback (ratings and comments) on articles.

Input:

Name

Type

Description

articleSysId

String

Sys_id of the knowledge article to review

Outputs:

Name

Type

Description

summary

String

Text summary of feedback

averageRating

Number

Average rating (0–5 scale)

totalFeedback

Number

Total number of feedback entries

Working Logic (in brief):

Validate Input: Ensure articleSysId is provided.

Aggregate Feedback:

Use GlideAggregate to count total feedback and average rating.

Collect Comments:

Query non-null comments from kb_feedback.

Generate Summary:

Format rating and comments into a readable report.

Return Outputs: Pass the summary, average rating, and total count to Flow.

Example Summary Output:
Feedback Summary:

  • Total feedback entries: 4
  • Average rating: 4.25
  • Comments:
    1. Very helpful.
    2. Needs more details.

@github-actions
Copy link

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@himanshu7895 himanshu7895 marked this pull request as ready for review October 19, 2025 16:10
@github-actions
Copy link

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@Rampriya-S Rampriya-S self-assigned this Oct 19, 2025
Copy link
Contributor

@Rampriya-S Rampriya-S left a comment

Choose a reason for hiding this comment

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

Approved. This custom Flow Designer action is getting the Knowledge Article and collecting feedback for automated summarization. Thank you for your contribution!

@Rampriya-S Rampriya-S merged commit b257f0b into ServiceNowDevProgram:main Oct 19, 2025
1 check passed
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