image for site

Change Article Author by Author ID in Zendesk

Discover how to change the author of an article in Zendesk based on the author ID using conditional statements.

Can I change the author of an article based on the author ID in Zendesk?

Yes, you can change the author of an article based on the author ID in Zendesk by using conditional statements in the article template. This is useful if you want to replace the author details for a specific contributor.

You can check the author's ID and replace their avatar and name with those of another agent. Here's an example of how you might do this:

<div class="article-avatar"> <img src="{{#is article.author.id 319145489}} {{asset 'user_image.jpg'}} {{else}} {{article.author.avatar_url}} {{/is}}" alt="Avatar"/> </div> <div class="article-meta"> {{#is article.author.id 319145489}} <strong class="article-author" title="Jill Smith"> Jill Smith </strong> {{else}} <strong class="article-author" title="{{article.author.name}}"> {{#if article.author.url}} <a href="{{article.author.url}}" target="_zendesk_lotus"> {{article.author.name}} </a> {{else}} {{article.author.name}} {{/if}} {{/is}} </strong>

Replace319145489with the ID of the author you want to change. For more details, refer to theZendesk guide.


More related questions

How can I change the author of all articles to a single agent in Zendesk?

To change the author of all articles to a single agent in Zendesk, you can modify the article template code. This involves replacing the default author avatar and name with a universal one. You can upload a new avatar to your assets and use the…

How do I change the author for articles in a specific language in Zendesk?

To change the author for articles in a specific language in Zendesk, you can use conditional statements in the article template. This allows you to display a different author name and avatar based on the article's locale. You can check the current…

How can I change the author of a specific article by its ID in Zendesk?

To change the author of a specific article by its ID in Zendesk, you can use conditional statements in the article template. This allows you to display a different author for a particular article. You can check the article's ID and replace the…

How do I combine multiple criteria to specify a new author in Zendesk?

To combine multiple criteria to specify a new author in Zendesk, you can use nested conditional statements in the article template. This allows you to set conditions based on both the author ID and the article's locale. For example, you might want…

Interested indeflectingover 70% of your Zendesk support tickets?

Our AI customer support agent is here to help. Trained on all your help docs, installed directly into your Zendesk account, it can be used to automate customer replies for tickets or live chat. Learn more below.
Zendesk logo

Zendesk Support Tickets

Receive new tickets by email or a support form? This integration is for you.
My AskAI integrated within Zendesk to deflect support tickets
Learn about our Zendesk ticket integration
Zendesk logo

Zendesk Messaging (live chat)

Using Zendesk's Messaging widget on your site for live chat? This integration is for you.
My AskAI integrated within Zendesk to deflect customer support live chat conversations
Learn about our Zendesk Messaging integration

Join1,000+ companies reducing their support costs and freeing up support agents for more important work

Vestd company logo — Customer of My AskAI's AI customer support agents
Genesis company logo — Customer of My AskAI's AI customer support agents
Zinc company logo — Customer of My AskAI's AI customer support agents
Customer.io company logo — Customer of My AskAI's AI customer support agents
Zeffy company logo — Customer of My AskAI's AI customer support agents
NHS company logo — Customer of My AskAI's AI customer support agents
Kontakt.io company logo — Customer of My AskAI's AI customer support agents

Reduce support costs.Spend more time on customer success.

Our AI customer support agents are already used by 👇
Companies using AI assistants on their websites