You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi! the data type of my_tr does not match with dsf.transition_routes
my_tr data type - <class 'google.cloud.dialogflowcx_v3beta1.types.flow.Flow'>
dsf (target) - <class 'google.cloud.dialogflowcx_v3beta1.types.page.TransitionRoute'>
(is it possible to convert these to class <class 'google.protobuf.pyext._message.RepeatedCompositeContainer'>??)
How to append the data types? also if you could give any example for such use case, would be great.
I've just stepped through the Bot Building 101 series notebook and did not have any issues.
You can see here that the Transition Route and Flow were updated properly:
When you encountered the issue, where you using the .py version or the .ipynb version?
The errors suggests that you might have tried to build the TransitionRoute directly from the base class imports, but I'm not 100% sure from just the error screenshot.
This notebook is quite old actually (3+ years?), and it could definitely use an update.
Since then, we've released some better Builder classes that I would suggest using instead.
These provide a much more simple way to build your proto objects directly, then push them to your Agent when ready.
Take a look at this Builders notebook for examples on how to use them.
https://github.com/GoogleCloudPlatform/dfcx-scrapi/blob/8a229db34ea613443040a2ca2cb45ff590452169/examples/bot_building_series/bot_building_101.py#L85C5-L85C5
(use case - create agent,
add pages, flow, intents
update present flows with intents and route flows to new page)
hi! the data type of my_tr does not match with dsf.transition_routes
my_tr data type - <class 'google.cloud.dialogflowcx_v3beta1.types.flow.Flow'>
dsf (target) - <class 'google.cloud.dialogflowcx_v3beta1.types.page.TransitionRoute'>
(is it possible to convert these to class <class 'google.protobuf.pyext._message.RepeatedCompositeContainer'>??)
How to append the data types? also if you could give any example for such use case, would be great.
error -
![image](https://private-user-images.githubusercontent.com/173246349/341420610-fec5ad55-9763-4706-b94d-ac7bbf1d14e5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwODE5MTksIm5iZiI6MTcyMTA4MTYxOSwicGF0aCI6Ii8xNzMyNDYzNDkvMzQxNDIwNjEwLWZlYzVhZDU1LTk3NjMtNDcwNi1iOTRkLWFjN2JiZjFkMTRlNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxNVQyMjEzMzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMmM2NGFlMjdkMjJhNTYwYmQxMmMzMGE3ODY5OWM5MWVkMzRmM2M1N2NiZmQ2MzFkM2Y1ZThiZjAzYzdjZjZhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.eqWnDFFq0o0i9VpfPXbFzHEOvXLB0R_6sVQpTyHaZmw)
steps to reproduce - https://github.com/GoogleCloudPlatform/dfcx-scrapi/blob/main/examples/bot_building_series/bot_building_101.ipynb
The text was updated successfully, but these errors were encountered: