Transcript Plan field missing
# support
n
When creating an agent I'm putting the transcriptPlan as part of the artifactPlan parameters per the documentation:
Copy code
artifactPlan: {
      transcriptPlan: {
        enabled: true,
        assistantName: agentName,
      }
    },
But transcriptPlan is missing from the ArtifactPlan interface and it's giving me an error. This is the interface in my api.d.ts
Copy code
export interface ArtifactPlan {
    /** This determines whether the video is recorded during the call. Default is false. Only relevant for `webCall` type. */
    videoRecordingEnabled?: boolean;
}
What am I missing? It says in the API that transcriptPlan should be a valid parameter.
v
@nearLucid It seems there might be a discrepancy between the documentation you're referring to and the current version of the
api.d.ts
interface file you have. The
ArtifactPlan
interface should indeed include the
transcriptPlan
if it's mentioned in the API documentation. To resolve this issue, please ensure that you are using the latest version of the API and its type definitions. If you are using the latest version and the
transcriptPlan
is still missing from the
ArtifactPlan
interface, it could be an oversight in the type definitions. In this case, you might want to reach out to the API support team to report this discrepancy. They can provide you with the correct type definitions or update the API documentation accordingly. For now, you can extend the
ArtifactPlan
interface locally to include the
transcriptPlan
as a workaround:
Copy code
typescript
interface ExtendedArtifactPlan extends ArtifactPlan {
  transcriptPlan?: {
    enabled: boolean;
    assistantName: string;
  };
}
Then use
ExtendedArtifactPlan
in your code where you need to include the
transcriptPlan
. However, please note that this is a temporary solution and you should seek an official update from the API provider. If you need further assistance or have more questions, feel free to ask!
You can continue this conversation by mentioning me in the message.
s
@nearLucid just wanted to confirm your using node-sdk or web-sdk?
n
Web!
4 Views