Skip to main content
ashokmoorthy
Inspiring
February 23, 2024
7.0 Duplicate

Support for plugins with optional parameters & user-based defaults

Related products:Agent Studio
  • February 23, 2024
  • 8 replies
  • 95 views

Hi Team,

Is there a way currently where we can pass either user-passing attributes or implicitly take any user-custom attributes?

Ex: Trying to build a network status in CREST Queries.

1. If the user says "show network status for NC01" then it will take NC01 (the user can pass the location) as input and pass it to the API. (this works now by taking a slot and passing as query parameter).

2. If the user says "show my network status" then it should automatically take user location input from ServiceNow.

Can we build a single use case where it can accept either option 1 or option 2 based on the user's utterance? Or any possible options?

Ref - Honeywell Zendesk ticket - #24178

8 replies

yagarwal
Employee
February 26, 2024

Yes @ashokmoorthy you can use both 1. the Queries keyword (provided by the user) + 2. the user attribute ingested from ServiceNow in your Query API configuration.

 

Check out the documentation here: https://developer.moveworks.com/creator-studio/integrations/outbound/api-configuration/#using-queries-keywords-as-variables-in-your-api-request

yagarwal
Employee
February 26, 2024
1. New3. Existing Functionality/Native Skill
ashokmoorthy
Inspiring
February 27, 2024

Thanks @yagarwal for the input.

I understand that we can get the input from the user via utterance (explicitly) or using ingested attributes(implicitly) . But consider my above use case where API is not from SNOW but from application like Splunk where we have mandatory field user location. Splunk doesn’t aware of user location like SNOW so we always have to pass the parameter.

But in this case,

  1. If user asks “Show my network status in Bangalore” → I can pass the location to the API
  2. If user asks “show my network status” → Assume user asking for his/her location, where he based out of - here the bot know the user location and we have to have pass implicitly.

Is there a way where I can build a use case with explicit param and if not take it internally.  Let us know your thought.

Ajay Merchia
Community Manager
February 27, 2024

@ashokmoorthy are there specific benefits to building a shared API for both actions rather than splitting them out?

ashokmoorthy
Inspiring
February 28, 2024

Yes, Development and operation cost from API side. And w/o this, we may need to build 2 different use case in CREST for single idea. 

Ajay Merchia
Community Manager
February 28, 2024

Got it. @ashokmoorthy, so this is essentially support for Plugins with optional parameters that have defaults based on the user’s identity. 

This is actually already on our roadmap. It’ll be a part of our Workflows feature here and only available on the next-gen copilot:

 

 

 

kyril.remillard
Community Manager
March 4, 2024
Updated idea status3. Existing Functionality/Native Skill2. On Roadmap
Idea merged into:

All the votes from this idea have been transferred.
Ajay Merchia
Community Manager
March 6, 2024
2. On RoadmapDuplicate