Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Duplication of intents and entities while importing an updated version of a pre-existing flow of sam

With Feb  06 2023  release dialogflow cx introduced the functionality ; in which while importing a flow a person was given a choice if he/she wants to keep the original resources or replace the existing resources ,  
the link to release note - 

 
and the image of the console -
 
 feb release functionalityfeb release functionality

All I want is to be able to do this(thing that is shown in image ) from client library

My specific problem is I want to automate the import flow process; if a change is made in a flow of dev bot , the new version of the same flow should be imported in the prod bot ,
but on doing so from client library all the resources(intent entities) and the flow itself is duplicating

Please , quick responses and any suggestions can help me , I am in a bit of urgency
please help
0 5 443
5 REPLIES 5

you can use the CX CLI to achieve that: https://cxcli.xavidop.me/cmd/cxcli/

For entities:

cxcli entity-type update pokemon --entities "pikachu@25|pika,charmander@3" --agent-name test-agent --project-id test-cx-346408 --location-id us-central1

For intents:

cxcli intent update test_intent --training-phrases "hello, hi how are you today@sys.date, morning"  --agent-name test-agent --project-id test-cx-346408 --location-id us-central1

Can I import a specific flow using this CLI tool?

 

Not yet!

I can add this to the tool in the upcoming weeks and let you know!

Thank you so much ,
But please look out for the functionality in which we can replace the original resources that exists in dialogflow with the resources of flow that we are importing .
(introduced in Feb 06 release of df)

Thanks again your replies are appreciated 🙂

Sure thing!

I will keep you posted!