Repository navigation
Support custom result fields for Dify Calls - #7
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
create_callandcreate_and_waitaccept an optionalresult_schemafor business fields such as appointment status and a requested alternative time. Blank input keeps the existing schema. Invalid schemas stop before any CALL-E request, and custom results keep their existing output paths alongside readiness, telephone outcome, and errors.Includes an importable appointment example and prepares version 0.3.0. Business results preserve their original values and types, including phone-named fields. Destination, metadata, and error phone fields remain masked.
Evidence
result.summarymapping.false, integer0,unknown, and an E.164 string in phone-named business fields from an official-hotline call; the destination phone remains masked.Merge Danger
Door: Two-way
Code can be reverted. Workflows using custom fields must keep a compatible plugin or update their input and result mappings before rollback. Existing workflows that omit the new input keep their schema and result paths.
Blast Radius: Calls
Custom field names are read from the result object in a Code node; they are not added to Dify's variable picker automatically. Call results and transcript text may contain personal data; the privacy policy describes the masking boundary.